void () { StaticImportInspection tool = new StaticImportInspection(); tool.allowedClasses.add("java.util.Map"); myFixture.enableInspections(tool); myFixture.testHighlighting(getTestName(false) + ".java"); }