Hermann Hess and Carl Jung became friends while Hermann was undergoing psychoanalysis under Jung’s assistant J.B. Lang. Lang was the bases of Hesse’s character in DEMIAN Pistorius. Durning this time, Hess’s son was very ill and his wife had been diagnosed as schizophrenic.
“There is no reality except the one contained within us,” Hesse once said. “That is why so many people live such an unreal life. They take the images outside them for reality and never allow the world within to assert itself.”
There is even a book about Jung’s and Hesse’s relationship.
P.S. I wrote a paper about Jung’s and Hesse’s relationship decades ago while in college…wish I had it now.