docs: public MessageDialog build() {
          MessageDialog messageDialog = new MessageDialog(
                  title,
                  text,
                  buttons.toArray(new MessageDialogButton[buttons.size()]));
          messageDialog.setHints(extraWindowHints);
          return messageDialog;
      }