void () { UtilityClassWithoutPrivateConstructorInspection inspection = new UtilityClassWithoutPrivateConstructorInspection(); inspection.ignoreClassesWithOnlyMain = true; myFixture.enableInspections(inspection); myFixture.testHighlighting(getTestName(false) + ".java"); }