I don't drink coffee because I think it tastes gross, but I've certainly had my fair share of caffeine from energy drinks and Diet Coke.
I'm pretty convinced that caffeine masked the more obvious symptoms of sleep apnea for most of my adult life. I think I was getting very bad sleep but since I had always drunk lots of Diet Coke I was able to ignore the symptoms.
I've gotten treatment for my sleep apnea (using the mouthpiece), and I'm caffeine free now, so I think I'm getting better sleep, but who the hell knows what kind of brain damage I have ended up with because I didn't take it seriously.