code: public Rule setParams(List<RuleParam> params) {
      this.params.clear();
      for (RuleParam param : params) {
        param.setRule(this);
        this.params.add(param);
      }
      return this;
    }
docs: Sets the rule parameters