docs: public Statement withMessages(Message... messages) {
          if (this.messages == null) {
              setMessages(new java.util.ArrayList<Message>(messages.length));
          }
          for (Message ele : messages) {
              this.messages.add(ele);
          }
          return this;
      }