void (final Pair<String, Integer>... expectedResults) { myFixture.configureByFile(getTestName(false) + ".java"); rebuildProject(); final Set<Pair<String, Integer>> actualSet = new HashSet<>(); for (Pair<String, Integer> pair : expectedResults) { IntentionAction action = myFixture.findSingleIntention("Make extends '" + pair.getFirst()); IntentionAction intentionAction = IntentionActionDelegate.unwrap(action); ChangeSuperClassFix changeSuperClassFix = ObjectUtils.tryCast(QuickFixWrapper.unwrap(intentionAction), ChangeSuperClassFix.class); if (changeSuperClassFix != null) { actualSet.add(Pair.create(changeSuperClassFix.getNewSuperClass().getQualifiedName(), changeSuperClassFix.getInheritorCount())); } } final Set<Pair<String, Integer>> expectedSet = ContainerUtil.newHashSet(expectedResults); assertEquals(actualSet, expectedSet); }