How to replace painted trees with prefabs

Hello to all!
I had a question that I couldn’t find an answer to and was hoping to get some help from you.

Is there a way to replace the trees painted in terrain with prefabs that we have full control and editability over?

I don’t mean the edit tree, but the replacement of trees painted with prefabs so that we can always access it.