private static void copyAction(final @NotNull JTree tree, String original, String copyTo) {
    final Action action = tree.getActionMap().get(original);
    if (action != null) {
      tree.getActionMap().put(copyTo, action);
    }
  }
private static void copyAction(final @NotNull JTree tree, String original, String copyTo)