void (@NotNull Class<? extends PsiElement> @NotNull ... highlightedElements) { myFixture.configureByFile(getTestName(true) + ".java"); myFixture.doHighlighting(); for (IntentionAction action : myFixture.getAvailableIntentions()) { if (TypeMigrationBundle.message("migrate.guava.to.java.family.name").equals(action.getFamilyName())) { final PsiElement element = ((GuavaInspection.MigrateGuavaTypeFix)action).getStartElement(); if (PsiTreeUtil.instanceOf(element, highlightedElements)) { fail("Quick fix is found but not expected for types " + Arrays.toString(highlightedElements)); } } } }