@Nullable
  @RequiresEdt
  public static <T extends Repository> T guessRepositoryForOperation(@NotNull Project project,
                                                                     @NotNull AbstractRepositoryManager<T> manager) {
    DataContext dataContext = SimpleDataContext.builder()
      .add(CommonDataKeys.PROJECT, project)
      .add(PlatformDataKeys.LAST_ACTIVE_FILE_EDITOR, FileEditorManager.getInstance(project).getSelectedEditor())
      .build();

    return guessRepositoryForOperation(project, manager, dataContext);
  }
@Nullable
  @RequiresEdt
  public static <T extends Repository> T guessRepositoryForOperation(@NotNull Project project,
                                                                     @NotNull AbstractRepositoryManager<T> manager)