I was having a discussion with a friend about the incident in the past days (4U 9525) and more specifically the what could be described as 'Taboo' of Psychological problems among pilots. We came across a few points:
They will only reluctantly admit that something is wrong, since risk losing their Medical (hence being 'grounded'). It will only be easier to loose and harder to get back I suspect after this event.
At least for the younger bunch who might have difficulties they will have substantial debt from training that is difficult to pay off. Furthermore, they will have worked hard to get where they are.
Any airline that does suspect something will most probably not allow them near the cockpit again. Should anything happen the airline will be held to blame, since they did allow him to fly despite knowing of the problem.
This brings up the question: What can a pilot do, career-wise, if they feel they are unable to exercise the profession? It seems pretty cornered to me. Perhaps work in dispatch/ network control was the only one I figured their knowledge could come to use. Switching to the simulator I suspect might also be possible, but not for the younger individuals.