private static @NotNull Pair<String, String> getUndoOrRedoActionNameAndDescription(boolean undo) {
      if (undo) {
        return Pair.create(
          ActionsBundle.message("action.undo.text", "").trim(),
          ActionsBundle.message("action.undo.description",
                                ActionsBundle.message("action.undo.description.empty")).trim());
      }
      else {
        return Pair.create(
          ActionsBundle.message("action.redo.text", "").trim(),
          ActionsBundle.message("action.redo.description",
                                ActionsBundle.message("action.redo.description.empty")).trim());
      }
    }
private static @NotNull Pair<String, String> getUndoOrRedoActionNameAndDescription(boolean undo)