public static @Nullable Object getUserObject(@Nullable Object node) {
    return node instanceof DefaultMutableTreeNode ? ((DefaultMutableTreeNode)node).getUserObject() : node;
  }
public static @Nullable Object getUserObject(@Nullable Object node)