private static void checkValidRules(Set<String> enabledRules,Set<String> specifiedRules) throws CLIArgumentParserException {
  if (!enabledRules.containsAll(specifiedRules)) {
    specifiedRules.removeAll(enabledRules);
    throw new CLIArgumentParserException("The following rules were not recognized: " + specifiedRules);
  }
}

private static void checkValidRules ( Set < String > enabledRules , Set < String > specifiedRules ) throws CLIArgumentParserException { if ( ! enabledRules . containsAll ( specifiedRules ) ) { specifiedRules . removeAll ( enabledRules ) ; throw new CLIArgumentParserException ( "The following rules were not recognized: " + specifiedRules ) ; } }
checks if rules specified in command line option is valid .
