void () { UnqualifiedInnerClassAccessInspection tool = new UnqualifiedInnerClassAccessInspection(); tool.ignoreReferencesToLocalInnerClasses = true; myFixture.enableInspections(tool); myFixture.testHighlighting(getTestName(false) + ".java"); }