If I am stuck on a tough coding problem, I take a pen and notepad and go to the local coffee shop for an hour or two. I leave behind the phone and laptop. Just doodle, write, think, and drink. Having an IDE open and staring at me is just too intimidating when trying to think high-level.