docs: public void setParties(java.util.Collection<HandshakeParty> parties) {
          if (parties == null) {
              this.parties = null;
              return;
          }
  
          this.parties = new java.util.ArrayList<HandshakeParty>(parties);
      }