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