public static void deleteFilesFromCache(@NotNull Project project,
                                          @NotNull VirtualFile root,
                                          @NotNull Collection<? extends VirtualFile> files)
    throws VcsException {
    List<FilePath> paths = ContainerUtil.map(files, VcsUtil::getFilePath);
    deletePaths(project, root, paths, "--cached");
    updateUntrackedFilesHolderOnFileRemove(project, root, paths);
  }
public static void deleteFilesFromCache(@NotNull Project project,
                                          @NotNull VirtualFile root,
                                          @NotNull Collection<? extends VirtualFile> files)