code: public static <T> T showDialog(WindowBasedTextGUI textGUI, String title, String description, int listBoxHeight, T... items) {
          int width = 0;
          for(T item: items) {
              width = Math.max(width, TerminalTextUtils.getColumnWidth(item.toString()));
          }
          width += 2;
          return showDialog(textGUI, title, description, new TerminalSize(width, listBoxHeight), items);
      }
docs: Shortcut for quickly creating a new dialog
  @param textGUI Text GUI to add the dialog to
  @param title Title of the dialog
  @param description Description of the dialog
  @param listBoxHeight Maximum height of the list box, scrollbars will be used if there are more items
  @param items Items in the dialog
  @param <T> Type of items in the dialog
  @return The selected item or {@code null} if cancelled