One needs to consider that suicide is not just an affliction of the mind, it's also a product of the circumstances a normal person finds him or herself in. It's not just the thoughts that need fixing, it's the circumstances too. Usually this is a chicken and egg problem: the thoughts prevent the person from fixing the circumstances himself, and the circumstances reinforce negative thoughts. This way somebody can get sucked deeper and deeper into a black hole of increasingly irrational negative thoughts. Even if the thoughts are clearly irrational to an outsider, they are not to the person themselves. Therefore suggesting that they simply fix their mind does not help. In their view their mind is not just what needs to be fixed, it's also the circumstances. We all should do our best to not create such circumstances and to fix them when they exist. In the story of the OP for example, it's fair to say that the behaviour of the professor played a big role in almost causing his suicide. If suicide is caused by circumstances a normal person finds him or herself in, do we not bear a collective responsibility to prevent it, even if it's just a smile?