void (final BaseRefactoringProcessor processor) { CommandProcessor.getInstance().executeCommand(myProject, () -> { InplaceChangeSignature.temporallyRevertChanges(JavaChangeSignatureDetector.getSignatureRange(currentMethod), document, oldText, project); doRefactor(processor); }, RefactoringBundle.message("changeSignature.refactoring.name"), null); }