Collection<String> () { final Sdk[] existingSdks = ReadAction.compute(() -> ProjectJdkTable.getInstance().getAllJdks()); final List<PyDetectedSdk> sdks = PySdkExtKt.detectSystemWideSdks(null, Arrays.asList(existingSdks)); //return all detected items after PY-41218 is fixed final PyDetectedSdk latest = StreamEx.of(sdks).findFirst().orElse(null); if (latest != null) { return Collections.singleton(latest.getHomePath()); } return Collections.emptyList(); }