Worst: Coffee contains caffeine, which is a central nervous stimulant. Translation: Drinking Java too close to bedtime will keep you up at night. Of course, people differ in their sensitivity to caffeine and that’s usually based on how much caffeine you’re accustomed to consuming, says Timothy Roehrs, Ph.D., a senior scientist with Henry Ford Sleep Disorder and Research Center in Detroit.