Drink caffeine
Caffeine is not required in your diet if you want to avoid it, but studies do show that it may improve focus and attention. Consider drinking some coffee or green tea if you feel your level of focus starting to decrease.
By increasing the release of dopamine and other neurotransmitters and preventing the absorption of adenosine, which causes sleep, caffeine awakens the central nervous system. If you don't drink coffee or tea, a portion of dark chocolate with at least 70% cacao can provide similar advantages. Phytochemicals found naturally in matcha, a type of green tea, have been shown in a 2017 study to not only boost cognitive function but also help relaxation. So if coffee makes you anxious or on edge, matcha can be a good alternative.