boolean (@NotNull String pathToGit) { try { GitExecutable.Local executable = new GitExecutable.Local(pathToGit); GitVersion version = GitExecutableManager.getInstance().identifyVersion(executable); return !GitVersion.NULL.equals(version); } catch (GitVersionIdentificationException e) { return false; } }