Repository (@NotNull Project project, @NotNull VirtualFile root, @NotNull Disposable parentDisposable) { return HgUtil.isHgRoot(root) ? HgRepositoryImpl.getInstance(root, project, parentDisposable) : null; }