public @NotNull GitExecutable getExecutable(@Nullable Project project, @Nullable File gitDirectory) {
    String path = getPathToGit(project, gitDirectory, true);
    if (path == null) path = GitExecutableDetector.getDefaultExecutable();
    return getExecutable(path);
  }
public @NotNull GitExecutable getExecutable(@Nullable Project project, @Nullable File gitDirectory)