docs: public void setMessages(java.util.Collection<Message> messages) {
          if (messages == null) {
              this.messages = null;
              return;
          }
  
          this.messages = new java.util.ArrayList<Message>(messages);
      }