void () { myFixture.configureByFiles("src/i18n/Foo.java", "content/anno/i18n/annotations.xml"); I18nInspection inspection = new I18nInspection(); inspection.setIgnoreForAllButNls(true); myFixture.enableInspections(inspection); myFixture.testHighlighting(true, false, false, "src/i18n/Foo.java"); }