This tool is called by two separate names: self-parenting or re-parenting. I prefer self-parenting as these techniques were not known by my birth parents.
Reparenting to Heal the Wounded Inner Child
How To Reparent Your Inner Child And Become More Secure