Refactoring of dynamic links

Right now, if you change names or IDs of components or server actions, in many cases several steps have to be taken to rename all the linked actions.
Simple example:
A button with a mouse click event which loads a serverconnect. For various reasons serverconnect gets renamed. The click event has to be edited and the broken link repaired.

I reckon, refactoring in a visual editor is a complicated feature and takes much effort. But this would save a LOT of time and increase productivity enormously! Sometimes in the beginning of a project, there is no way you already have the perfect naming for all your components at hand.

Back then when I worked with android studio, “refactor” was the command I certainly used the most.