GitRepository (@NotNull VirtualFile root, @NotNull Project project, boolean listenToRepoChanges) { GitRepository repository = GitRepositoryManager.getInstance(project).getRepositoryForRoot(root); return notNull(repository, () -> createInstance(root, project, GitDisposable.getInstance(project))); }