void (String fixName, String before, String after) { myFixture.configureByText("TestClass." + getFileExtension(), before); myFixture.checkHighlighting(); IntentionAction intention = myFixture.findSingleIntention(fixName); myFixture.checkPreviewAndLaunchAction(intention); myFixture.checkResult(after, true); }