docs: public void setRules(java.util.Collection<RuleSummary> rules) {
          if (rules == null) {
              this.rules = null;
              return;
          }
  
          this.rules = new java.util.ArrayList<RuleSummary>(rules);
      }