I've read in the Power of Now by Eckhart Tolle that you have to stop identifying yourself with your mind in order to stop obsessive-compulsive thoughts, and have a more quiet mind. Realize that you are not your mind. It is just an instrument that you can use. The negative thoughts that come up are just a product of your experiences and conditioning. They do not come from your true self. Creative, inspiring, and positive thoughts only can come from your true self/higher self.