Mostly by continually hitting my head on the desk for days on out. But when that doesn't work, I walk away and get outside for a nature walk or just walk within my neighborhood. Meet people. Talk with them. Putting the problem in the back of mind and letting it sit until the solution comes.