Mature people focuses on what is needed, and not on a nonesence which brings nowhere.
What is needed on a mature perspective is what is most right for a certain situation.
I think this comes with time, experience, striving for bettering ourselves, persistence, education, discipline, learning in application of knowledge, above all learning, learning and learning.
Maturity also comes completely naturally by doing all the above and more and it can’t be reached faster.
It is something like when you experience life more, and start to see more straight what is all about.