I am currently working on a plugin that programmatically performs an inline method, performs some operations (or doesn't), and then extracts the method later. I am using the extract method processor to undo the inline method currently, however I am running into some issues with it. If there are multiple invocations that are inlined, I am only able to extract one of them. I am also unable to get the same signature that I had before I inlined the method. If I manually extract the method, I can extract all of the necessary invocations with a mostly correct signature (I need to perform a change signature refactoring to get the signature textually correct).
I'm pretty sure the method signature is user error and that's something I can figure out. Do you have any suggestions to perform the extract method on all of the method invocations in the source method?