void (String testName) { final IntentionAction action = myFixture.getAvailableIntention("Suppress for method", "src/suppressed/" + testName + ".java"); assertNotNull(action); Project project = myFixture.getProject(); JavaCodeStyleSettings javaSettings = JavaCodeStyleSettings.getInstance(project); javaSettings.USE_EXTERNAL_ANNOTATIONS = true; myFixture.launchAction(action); myFixture.checkResultByFile("content/anno/suppressed/annotations.xml", "content/anno/suppressed/annotations" + testName + "_after.xml", true); }