Cognitive psychology focuses on the mind and the processes involved therein. It focuses therefore on mental processes which include but are not limited to, attention, memory, thought process and creativity.
Popular cognitive psychological disorders include amnesia, dementia and depression. Given that there is medicine that is aimed at slowing memory loss in the case of dementia and antidepressants for depression, it can be surmised that from a Cognitive perspective, medication can be recommended by a psychologist.
A language may be endangered because there are fewer and fewer people who claim that language as their own and therefore neither use it nor pass it on to their children.