List<String> (boolean forceEmbeddedJava) { JavaHomeFinderBasic javaFinder = getFinder(forceEmbeddedJava); if (javaFinder == null) return Collections.emptyList(); ArrayList<String> paths = new ArrayList<>(javaFinder.findExistingJdks()); paths.sort((o1, o2) -> Comparing.compare(JavaVersion.tryParse(o2), JavaVersion.tryParse(o1))); return paths; }