docs: public void setDesiredWeightsAndCapacities(java.util.Collection<DesiredWeightAndCapacity> desiredWeightsAndCapacities) {
          if (desiredWeightsAndCapacities == null) {
              this.desiredWeightsAndCapacities = null;
              return;
          }
  
          this.desiredWeightsAndCapacities = new java.util.ArrayList<DesiredWeightAndCapacity>(desiredWeightsAndCapacities);
      }