There's a deceptively simple breathing exercise that helps me in almost any moment of stress or important thinking. Just observe my breathing. Don't try to change it, just focus inward and notice what is happening as I breathe. It's amazing how much this can calm my mind or focus my thoughts.