public static @NotNull Collection<GitDiffChange> getWorkingTreeChanges(@NotNull Project project,
                                                                         @NotNull VirtualFile root,
                                                                         @Nullable Collection<FilePath> paths,
                                                                         boolean detectMoves) throws VcsException {
    if (detectMoves) {
      return getLocalChanges(project, root, paths, "-M", "HEAD");
    }
    else {
      return getLocalChanges(project, root, paths, "--no-renames", "HEAD");
    }
  }
public static @NotNull Collection<GitDiffChange> getWorkingTreeChanges(@NotNull Project project,
                                                                         @NotNull VirtualFile root,
                                                                         @Nullable Collection<FilePath> paths,
                                                                         boolean detectMoves)