Set<String> () { Path installsDir = findAsdfInstallsDir(); if (installsDir == null) return Collections.emptySet(); Path javasDir = installsDir.resolve("java"); return safeIsDirectory(javasDir) ? scanAll(javasDir, true) : Collections.emptySet(); }