Yes, it's called EEG Neurofeedback and has been around for nearly 40 years.
You wil find a lot more about it by searching for that. It works by selectively (by the trainers) depicting brain activity in real time. This activity is then fed back into the brain via the eyes and ears. Desired activity is rewarded with sensory input, underside activity is not. The brain trains itself to behave in a more desired way without any effort form it's 'owner'.
The technology really works and it can cure all kinds of mental illness and brain injuries. It can also be used to train the mind for peak mental fitness, an aspect of longevity for sure.