Earlier quoted context omitted.
When you make the change on an IDE, you: 1 - Find the code 4 - Move the code 10 - Change the documentation You don't do the other steps because it's deterministic and always correct.
Presumably you're talking about statically typed languages? I mainly work in Python and JavaScript. I don't trust any refactors until I've seen the test suite pass. (OK, sure, "rename method" might be OK, but most of my refactors and design changes are more interesting than that.)
Anyway, Python tools are usually capable of refactoring any code that isn't reflective or self-rewriting. There are places for those two, but those are very few and the AI won't have any idea how to work at those places either.
JavaScript is a problem.