void (final Runnable run) { myFixture.configureByFile("refactoring/changeSignatureGesture/" + getTestName(false) + ".java"); myFixture.enableInspections(new UnusedDeclarationInspection()); CommandProcessor.getInstance().executeCommand( myFixture.getProject(), () -> new InplaceChangeSignature(myFixture.getProject(), myFixture.getEditor(), myFixture.getFile().findElementAt(myFixture.getCaretOffset())), RefactoringBundle.message("changeSignature.refactoring.name"), null); run.run(); IntentionAction action = myFixture.findSingleIntention("Changing signature of "); myFixture.launchAction(action); myFixture.checkResultByFile("refactoring/changeSignatureGesture/" + getTestName(false) + "_after.java"); }