code: private CollectRulesVisitor getAllRules(RuleSet ruleSet, RuleSelection ruleSelection) throws RuleException {
          CollectRulesVisitor visitor = new CollectRulesVisitor();
          RuleSetExecutor executor = new RuleSetExecutor(visitor, new RuleSetExecutorConfiguration());
          executor.execute(ruleSet, ruleSelection);
          return visitor;
      }
docs: Determines all rules.
  
  @param ruleSet
  The rule set.
  @return The visitor with all valid and missing rules.
  @throws RuleException
  If the rules cannot be evaluated.