class MessageList implements Serializable, Iterable<Message> {

    public String getText() {
        return messages.stream()
                .map(Message::getText)
                .collect(Collectors.joining("\n"));
    }

    public  MessageList(@NonNull Message... messages);

}