No there is no inoculation against mental disorders.But we can certainly build such a mechanism for our own use.See ifit helps ...
Read this post on jeeteraho.blogspot.com