public static @NotNull List<Element> getChildren(@Nullable Element parent) {
    return parent == null ? Collections.emptyList() : parent.getChildren();
  }
public static @NotNull List<Element> getChildren(@Nullable Element parent)