docs: public void setParams(List<AstNode> params) {
          if (params == null) {
              this.params = null;
          } else {
              if (this.params != null)
                  this.params.clear();
              for (AstNode param : params)
                  addParam(param);
          }
      }