void (boolean fixOnly) { NonFinalFieldInEnumInspection inspection = new NonFinalFieldInEnumInspection(); inspection.onlyWarnWhenQuickFix = fixOnly; myFixture.enableInspections(inspection); myFixture.testHighlighting(getTestName(false) + ".java"); }