private static InputFormat getInputFormat(SchemaType type) {
    return switch (type) {
      case DTD -> new DtdInputFormat();
      case RNC -> new CompactParseInputFormat();
      case RNG -> new SAXParseInputFormat();
      case XML -> new XmlInputFormat();
      default -> {
        assert false : "Unsupported input type: " + type;
        yield null;
      }
    };
  }
private static InputFormat getInputFormat(SchemaType type)