void (int toSelect) { myFixture.configureByFile(getBeforeFile()); myFixture.enableInspections(SpellCheckingInspection.class); final IntentionAction intention = ContainerUtil.filter( myFixture.getAvailableIntentions(), (it) -> it.getFamilyName().equals(ChangeTo.getFixName()) ).get(toSelect + 1); assertNotNull("cannot find quick fix", intention); myFixture.launchAction(intention); myFixture.checkResultByFile(getResultFile()); }