With enough practice, you can learn to instantly identify the irrational thoughts that will cause you to suffer. You can develop the knowledge and discipline to take control of the ongoing story your brain is spinning. But in order to do it, you have to build the habits of noticing every distortion that enters your awareness, resisting the urge to indulge it, and shooting down each one before it takes your emotional trajectory down with it.