void (final String comment, final String... inspections) { final Matcher m = PATTERN.matcher(comment); if (inspections.length == 0) { assertFalse(m.matches()); return; } assertTrue(m.matches()); final String inspectionsList = m.group(1).trim(); for (final String inspection : inspections) { assertTrue("'" + inspection + "' is not in '" + inspectionsList + "'", SuppressionUtil.isInspectionToolIdMentioned(inspectionsList, inspection)); } }