@Override
  public Object @NotNull [] getChildElements(@NotNull final Object element) {
    if (element instanceof AbstractTreeNode<?> node) {
      return ArrayUtil.toObjectArray(node.getChildren());
    }
    return ArrayUtil.EMPTY_OBJECT_ARRAY;
  }
@Override
  public Object @NotNull [] getChildElements(@NotNull final Object element)