docs: public void setTerms(java.util.Collection<Term> terms) {
          if (terms == null) {
              this.terms = null;
              return;
          }
  
          this.terms = new java.util.ArrayList<Term>(terms);
      }