GitRepository (@NotNull VirtualFile root, @NotNull Project project, @NotNull Disposable parentDisposable) { VirtualFile gitDir = Objects.requireNonNull(GitUtil.findGitDir(root)); return createInstance(root, gitDir, project, parentDisposable); }