GitRepository (@NotNull VirtualFile root, @NotNull VirtualFile gitDir, @NotNull Project project, @NotNull Disposable parentDisposable) { ProgressManager.checkCanceled(); GitRepositoryImpl repository = new GitRepositoryImpl(root, gitDir, project, parentDisposable); repository.setupUpdater(); GitRepositoryManager.getInstance(project).notifyListenersAsync(repository); return repository; }