The article is not claiming causal link, but this is still interesting. >After full covariate adjustment, consumption of >6 cups/day was associated with 53% higher odds of dementia compared to consumption of 1–2 cups/day Coffee is stimulant just like some Alzheimer medications used to treat symptoms. It would be interesting to see if people increase coffee consumption with cognitive decline.
People with trouble sleeping tend to be people with trouble staying awake.
And those people generally reach for coffee.
there's also the reverse, coffee interfering with sleep as well.
EDIT: add a link:
https://www.health.harvard.edu/blog/sleep-well-and-reduce-yo...