code: @Override
      public T showDialog(WindowBasedTextGUI textGUI) {
          result = null;
          super.showDialog(textGUI);
          return result;
      }
docs: {@inheritDoc}
  
  @param textGUI Text GUI to add the dialog to
  @return The item in the list that was selected or {@code null} if the dialog was cancelled