I am new to plugin development so would really appreciate some help with my question
My requirement is to hook into IntelliJ's rename refactoring for all identifiers in the source code. Specifically, when a developer uses the IntelliJ's rename feature I want to capture the old and new name of the identifier.
I created a class that implements RefactoringElementListenerProvider and override elementRenamedOrMoved. Debugging the code, I can see that elementRenamedOrMoved is called when a method or class is renamed. However, it is not called when a variable or parameter is renamed. Additionally, I cannot obtain the old name of the method or class that was renamed.
Can someone please guide me on the right approach to capturing the old and new name of renamed identifiers?