List<Sdk> (@NotNull Project project) { return RunManager.getInstance(project).getAllConfigurationsList().stream() .map(conf -> conf instanceof ConfigurationWithAlternativeJre jreConf && jreConf.isAlternativeJrePathEnabled() ? jreConf.getAlternativeJrePath() : null) .filter(Objects::nonNull) .map(ProjectJdkTable.getInstance()::findJdk) .filter(Objects::nonNull) .distinct() .toList(); }