I thought my muchness had left me never to return. I think two years passed for me too before I wrote anything again. Insecurity is a writer's worst enemy.
One day I snapped. I think I was angry or sad about something and I just wanted to forget about it so I opened my laptop and just went crazy. It didn't matter if what I wrote was good or not. Just the ability to create another world was enough to lift me out of my despair.
You have this wonderful ability to CREATE. You can pull a story seemingly out of thin air and call it your own. Isn't that fantastic? You can use words to express your opinions or argue on a topic that's important to you. Whatever your preferred genre, you have the ability to create.
To be completely honest with you, the way I get out of my head is to steal a shovel from someone else's story and use it to then go BACK into my head and dig out a new creative path. This could be a movie, a character, or a book... Even a historical figure who died in an unsatisfactory way could strike a creative fire within me. The fire burns so hot that I forget all about who said what to me five years ago.
I suggest you read Steal Like an Artist, by Austin Kleon.
Creative writers are resourceful but sensitive creatures. That's what makes us so damn good at writing, no?
Good luck!