@Nullable
  @CalledInAny
  protected HgRepository getSelectedRepositoryFromEvent(@NotNull DataContext dataContext) {
    List<HgRepository> repositories = getSelectedRepositoriesFromEvent(dataContext);
    return repositories.isEmpty() ? null : repositories.get(0);
  }
@Nullable
  @CalledInAny
  protected HgRepository getSelectedRepositoryFromEvent(@NotNull DataContext dataContext)