@NotNull
  private static String getScope(@NotNull Document document) {
    String scope = firstOrEmpty(document.getElementsByTagName("scope"));
    return switch (scope) {
      case "test" -> "testImplementation";
      case "provided" -> "compileOnly";
      case "runtime" -> "runtime";
      case "compile" -> "implementation";
      default -> "implementation";
    };
  }
@NotNull
  private static String getScope(@NotNull Document document)