public static @NotNull Hash write(@NotNull Project project, @NotNull VirtualFile root,
                                    @NotNull FilePath filePath, @NotNull InputStream content,
                                    boolean executable, boolean addNewFiles) throws VcsException {
    Hash hash = hashObject(project, root, filePath, content);
    updateIndex(project, root, filePath, hash, executable, addNewFiles);
    return hash;
  }
public static @NotNull Hash write(@NotNull Project project, @NotNull VirtualFile root,
                                    @NotNull FilePath filePath, @NotNull InputStream content,
                                    boolean executable, boolean addNewFiles)