We automatically default to a certain way of thinking if we're not aware of the thoughts we're letting enter into our mind.
You can create new patterns of thought by repetition.
When you find yourself playing in the space of a negative destructive thought, pick a quote that resonates with you and make that your mantra.