void () { final LoggerInitializedWithForeignClassInspection inspection = new LoggerInitializedWithForeignClassInspection(); inspection.ignoreNonPublicClasses = true; myFixture.enableInspections(inspection); doTest(); }