private static void updateAndRefresh(@NotNull Project project,
                                       @NotNull VirtualFile root,
                                       @NotNull Collection<? extends FilePath> files,
                                       boolean updateIgnoredHolders) {
    updateUntrackedFilesHolderOnFileAdd(project, root, files);
    if (updateIgnoredHolders) {
      updateIgnoredFilesHolderOnFileAdd(project, root, files);
    }
    GitIndexFileSystemRefresher.refreshFilePaths(project, files);
  }
private static void updateAndRefresh(@NotNull Project project,
                                       @NotNull VirtualFile root,
                                       @NotNull Collection<? extends FilePath> files,
                                       boolean updateIgnoredHolders)