private static @Nullable Object getNodeValue(@Nullable AbstractTreeNode<?> node) {
    if (node == null) return null;
    Object value = node.getValue();
    if (value instanceof StructureViewTreeElement) {
      return ((StructureViewTreeElement)value).getValue();
    }
    return value;
  }
private static @Nullable Object getNodeValue(@Nullable AbstractTreeNode<?> node)