@Contract("null -> null; !null -> !null")
  public static Element load(Reader reader) throws JDOMException, IOException {
    if (reader == null) {
      return null;
    }

    try {
      XMLStreamReader2 xmlStreamReader = StaxFactory.createXmlStreamReader(reader);
      try {
        return SafeStAXStreamBuilderKt.buildJdom(xmlStreamReader, true);
      }
      finally {
        xmlStreamReader.close();
      }
    }
    catch (XMLStreamException | UncheckedStreamException | IllegalNameException e) {
      throw new JDOMException(e.getMessage(), e);
    }
  }
@Contract("null -> null; !null -> !null")
  public static Element load(Reader reader)