void () { myFixture.configureByFiles("src/fromSrc/Foo.java", "content/anno/fromSrc/annotations.xml"); IntentionAction action = myFixture.findSingleIntention(JavaBundle.message("intention.text.annotate.externally")); assertNotNull(action); myFixture.launchAction(action); myFixture.checkResultByFile("src/fromSrc/Foo_after.java"); myFixture.checkResultByFile("content/anno/fromSrc/annotations.xml", "content/anno/fromSrc/annotations_after.xml", true); }