List<Sdk> (@Nullable final Project project, @Nullable Module module) { var targetModuleSitsOn = (module != null) ? PythonInterpreterTargetEnvironmentFactory.Companion.getTargetModuleResidesOn(module) : null; List<Sdk> result = new ArrayList<>(); for (Sdk sdk : getModel().getSdks()) { if (!(sdk.getSdkType() instanceof PythonSdkType)) continue; if (targetModuleSitsOn != null) { var sdkConfig = PySdkExtKt.getTargetEnvConfiguration(sdk); if (!TargetConfigurationWithLocalFsAccessExKt.codeCouldProbablyBeRunWithConfig(targetModuleSitsOn, sdkConfig)) { continue; } } result.add(sdk); } result.sort(new PyInterpreterComparator(project)); return result; }