Following a nutrient-dense eating plan, such as the Mediterranean diet, in early adulthood may help prevent mental decline decades later.