void (@NotNull Class inspectionClass, @NotNull Collection<String> presentHints, @NotNull Collection<String> absentHints) { final String testFileName = getTestName(true); myFixture.enableInspections(inspectionClass); myFixture.configureByFile(testFileName + ".py"); myFixture.checkHighlighting(true, false, false); for (String hint: presentHints) { myFixture.findSingleIntention(hint); } for (String hint: absentHints) { List<IntentionAction> ints = myFixture.filterAvailableIntentions(hint); assertEmpty(ints); } }