docs: public void setHandshakes(java.util.Collection<Handshake> handshakes) {
          if (handshakes == null) {
              this.handshakes = null;
              return;
          }
  
          this.handshakes = new java.util.ArrayList<Handshake>(handshakes);
      }