Sdk (@NotNull Project project, @NotNull VirtualFile workingDirectoryVirtualFile, boolean allowRemote) { Module module = ModuleUtilCore.findModuleForFile(workingDirectoryVirtualFile, project); if (module != null) { Sdk sdk = PythonSdkUtil.findPythonSdk(module); if (sdk != null && (allowRemote || !PythonSdkUtil.isRemote(sdk))) { return sdk; } } return null; }