void (String text, int expected) { myFixture.enableInspections(new MisspelledHeaderInspection()); myFixture.configureByText(ManifestFileType.INSTANCE, text + "\n"); myFixture.checkHighlighting(); assertEquals(expected, myFixture.filterAvailableIntentions("Change to").size()); }