It’s mindful thinking, like in the practice of law of attraction manifestation. When you catch yourself in the midst of negative thinking, take a step back, breathe, choose to be positive, and try again :) You do control your own thoughts.
Great share, hope more people can realise the control they have over how they can react in a situation.