void (String before, String after, String hint) { myFixture.configureByText("X.java", before); IntentionAction action = myFixture.findSingleIntention(hint); myFixture.checkPreviewAndLaunchAction(action); myFixture.checkResult(after); }