Hi and welcome to PC. You asked what others do with this and I can only relate what I do for myself.
Actually, I think it is a part of my past right now. I rarely feel lonely. When I was though, I volunteered at a hospital. Getting out of my own head was the best thing I could do; I stopped thinking about myself so much and focused my energy where it would do more good.
Negative energy drags me down into depression and I fight it with many strategies. This is just one that comes to mind.
All the best to you as you find the right thing that works for you ~