@Nullable
  private static Sdk getLocalSdkForFile(@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;
  }
@Nullable
  private static Sdk getLocalSdkForFile(@NotNull Project project, @NotNull VirtualFile workingDirectoryVirtualFile, boolean allowRemote)