public static <T> T load(Path file, Class<T> clazz) {
    try (var schemaStream = Files.newInputStream(file)) {
      return load(schemaStream, clazz);
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
  }
Utility for parsing YAML files into java objects using snakeyaml to handle aliases and anchors and jackson to map
into java model objects.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/YAML.java