docs: public List<Rule> getRules(RuleProvider provider)
      {
          List<Rule> rules = providersToRules.get(provider);
          if (rules == null)
          {
              return Collections.emptyList();
          }
          return Collections.unmodifiableList(rules);
      }