private static void addJavafxFromLocalRepository(List<URL> urls) throws IOException {
    File localRepositoryPath = JarRepositoryManager.getLocalRepositoryPath();
    Path javaFx = Paths.get(localRepositoryPath.getPath(), "org", "openjfx");

    for (String artifact : JAVAFX_ARTIFACTS) {
      Path path2Artifact = javaFx.resolve(artifact).resolve(JAVAFX_VERSION);

      try (Stream<Path> artifacts = Files.list(path2Artifact)) {
        List<Path> paths = artifacts
          .filter(path -> {
            String name = path.toFile().getName();
            return name.startsWith(artifact + "-" + JAVAFX_VERSION) && name.endsWith(".jar"); //include os-specific jars
          }).toList();

        for (Path path : paths) {
          urls.add(path.toUri().toURL());
        }
      }
    }
  }
private static void addJavafxFromLocalRepository(List<URL> urls)