Your link literally says: “ Epidemiologic studies have provided inconclusive evidence for a protective effect of caffeine consumption on risk of dementia and cognitive decline.”
Context is key. You've just cited the concept under challenge. The summary and conclusion literally says it "may reduce the risk of dementia and cognitive decline, and may ameliorate cognitive decline in cognitively impaired individuals."
That doesn’t sound very convincing.