I have done this to myself. the trick is to set a very small goal then after that go distract yourself like go to the toilet, drink some water, or doing something then, do repeat it there will be some part of the project that make you focus. if the project get stuck you need to get rest and thats my advice for you