docs: public void setPortStates(java.util.Collection<InstancePortState> portStates) {
          if (portStates == null) {
              this.portStates = null;
              return;
          }
  
          this.portStates = new java.util.ArrayList<InstancePortState>(portStates);
      }