docs: private List<String> collectRuleNames() {
          List<String> ruleNames = new ArrayList<>();
          for (Rule rule : rules) {
              ruleNames.add(rule.getName());
          }
          Collections.sort(ruleNames);
          return ruleNames;
      }