As a developer, very often I'm locked into a problem (algorithms, trigonometry, "stuff you'd think you'd know by now, dumbass", etc.)
The only way for me to get out of it is doodling it down: write the keywords, link them, circle them around, draw the thing, depict it in 3D, flow chart it, boxes, structures, swimlanes, whatever.
It's like mansplaining it to my brain.
Works 11/10 times.
Always have a clean pad with a pen handy.