void (boolean checkComments, boolean checkTopLevelValues) { final JsonStandardComplianceInspection inspection = new JsonStandardComplianceInspection(); inspection.myWarnAboutComments = checkComments; inspection.myWarnAboutMultipleTopLevelValues = checkTopLevelValues; myFixture.enableInspections(inspection); }