code: private List<String> collectRuleNames() {
          List<String> ruleNames = new ArrayList<>();
          for (Rule rule : rules) {
              ruleNames.add(rule.getName());
          }
          Collections.sort(ruleNames);
          return ruleNames;
      }
docs: Returns a list of the names of all rules in this {@link RuleSet} sorted by name.
  
  @return names of all rules in this {@link RuleSet} sorted by name