Egoism beget anxiety; anxiety beget egoism.

Is this a loop one can get trapped in? I think it’s sort of an easy thing to not notice “egoism” when it feels justified by something reasonable. If your mind is focused on yourself, because of a problem you have, it feels rational to focus on yourself in an effort to solve that problem.
But what if the effort to solve the problem is perpetuating it? The most content people I know think about themselves the least (or so it seems from outside of their brains.)