docs: public void setDeviceMethods(java.util.Collection<DeviceMethod> deviceMethods) {
          if (deviceMethods == null) {
              this.deviceMethods = null;
              return;
          }
  
          this.deviceMethods = new java.util.ArrayList<DeviceMethod>(deviceMethods);
      }