@CalledInAny
  public static @Nullable HgRepository guessWidgetRepository(@NotNull Project project, @Nullable VirtualFile selectedFile) {
    return DvcsUtil.guessWidgetRepository(project,
                                          HgUtil.getRepositoryManager(project),
                                          HgProjectSettings.getInstance(project).getRecentRootPath(),
                                          selectedFile);
  }
@CalledInAny
  public static @Nullable HgRepository guessWidgetRepository(@NotNull Project project, @Nullable VirtualFile selectedFile)