void () { final UnnecessarilyQualifiedInnerClassAccessInspection inspection = new UnnecessarilyQualifiedInnerClassAccessInspection(); inspection.ignoreReferencesNeedingImport = true; myFixture.enableInspections(inspection); doTest(); checkQuickFixAll(); }