Thankfully, there are ways to ingest caffeine and nicotine that don't involve smoking coffee grounds or tobacco leaves. Drinking coffee or using transdermal or vaporized nicotine solution could offer the benefits without the health risks of inhaling tars and the carcinogenic products of combustion.
Perhaps eating eggplants may help too?
But the correlation is between smoking and drinking coffee, not receiving a certain amount of nicotine and caffeine. Indeed, the linked abstract talks about gut biome - it's unlikely that a nicotine patch on your thigh is going to affect your gut biome in the same way actual smoke in your throat is.
Parkinson's is a movement disorder, not dementia-related (you're probably thinking of Alzheimer's).
Parkinson's long list of possible symptoms includes both movement disorders and dementia.