List<Sdk> (@NotNull List<Sdk> existingSdks) { return StreamEx .of(existingSdks) .filter(sdk -> sdk != null && sdk.getSdkType() instanceof PythonSdkType && PySdkExtKt.getSdkSeemsValid(sdk)) .sorted(new PreferredSdkComparator()) .toList(); }