void (String quickFixName) { PsiClass generated = myFixture.addClass("public class GenMyTestClass implements MyTestClass {String implementMe(String arg) { return \"\"; } }"); String generatedTextBefore = generated.getText(); myFixture.configureByFile("before" + getTestName(false) + ".java"); List<IntentionAction> intentions = myFixture.getAvailableIntentions(); IntentionAction action = ContainerUtil.find(intentions, i -> i.getText().startsWith(quickFixName)); assertNotNull(action); myFixture.launchAction(action); myFixture.checkResultByFile("after" + getTestName(false) + ".java"); assertEquals(generatedTextBefore, generated.getText()); }