docs: public void setTypes(java.util.Collection<Type> types) {
          if (types == null) {
              this.types = null;
              return;
          }
  
          this.types = new java.util.ArrayList<Type>(types);
      }