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