private static void updateLocalSdkVersionAndPaths(@NotNull Sdk sdk, @Nullable Project project)
    throws InvalidSdkException {
    updateLocalSdkVersion(sdk);
    if (!PythonSdkUtil.isRemote(sdk)) {
      try {
        updateSdkPaths(sdk, evaluateSysPath(sdk, project != null ? project : ProjectManager.getInstance().getDefaultProject()), project);
      }
      catch (ExecutionException e) {
        throw new InvalidSdkException(PyBundle.message("python.sdk.cannot.evaluate.sdk.version.error.message"), e);
      }
    }
  }
private static void updateLocalSdkVersionAndPaths(@NotNull Sdk sdk, @Nullable Project project)