void () { try { InspectionProfileImpl.INIT_INSPECTIONS = true; myFixture.enableInspections(MisspelledHeaderInspection.class); myFixture.configureByText(ManifestFileType.INSTANCE, "Custom-Header: -\n"); List<IntentionAction> intentions = myFixture.filterAvailableIntentions("Add "); assertEquals(1, intentions.size()); InspectionProfileImpl profile = InspectionProfileManager.getInstance(getProject()).getCurrentProfile(); assertEquals(List.of(), ((MisspelledHeaderInspection)profile.getToolById("MisspelledHeader", getFile()).getTool()).CUSTOM_HEADERS); myFixture.launchAction(intentions.get(0)); assertEquals(List.of("Custom-Header"), ((MisspelledHeaderInspection)profile.getToolById("MisspelledHeader", getFile()).getTool()).CUSTOM_HEADERS); } finally { InspectionProfileImpl.INIT_INSPECTIONS = false; } }