Set<String> () { if (ApplicationManager.getApplication() == null) { return Collections.emptySet(); } Set<Path> paths = new HashSet<>(); if (myCheckDefaultInstallDir) { paths.add(JdkInstaller.getInstance().defaultInstallDir()); } if (myCheckUsedInstallDirs) { paths.addAll(JdkInstallerStore.getInstance().listJdkInstallHomes()); } if (myCheckConfiguredJdks) { for (Sdk jdk : ProjectJdkTable.getInstance().getAllJdks()) { if (!(jdk.getSdkType() instanceof JavaSdkType) || jdk.getSdkType() instanceof DependentSdkType) { continue; } String homePath = jdk.getHomePath(); if (homePath == null) { continue; } paths.addAll(listPossibleJdkInstallRootsFromHomes(mySystemInfo.getPath(homePath))); } } return scanAll(paths, true); }