void () { final FieldCanBeLocalInspection inspection = new FieldCanBeLocalInspection(); inspection.EXCLUDE_ANNOS.add(Deprecated.class.getName()); myFixture.enableInspections(inspection); myFixture.testHighlighting(getTestName(false) + ".java"); }