For me meditation has been extremely helpful. The practice allows me to intercept intrusive thoughts. When some negative thought arrives I can recognize it as being part of me, even welcome it, but i can choose not to unpack the contents of the thought. Over time the negative thoughts don't get exercised and the mental pathways on which they arrive start to atrophy. Just like learning to play a musical instrument, you need to practice.