docs: public void setModes(java.util.Collection<String> modes) {
          if (modes == null) {
              this.modes = null;
              return;
          }
  
          this.modes = new java.util.ArrayList<String>(modes);
      }