void (Class<? extends CommonIntentionAction> intentionClass) { myFixture.configureByFile(getTestName(false) + ".java"); final List<IntentionAction> result = new SmartList<>(); for (final IntentionAction intention : myFixture.getAvailableIntentions()) { if (intentionClass.isInstance(IntentionActionDelegate.unwrap(intention)) || intentionClass.isInstance(intention.asModCommandAction())) { result.add(intention); } } assertEmpty("Intention of class '" + intentionClass + "' is available but should not", result); }