public static @NotNull Set<FilePath> getFilteredFilesForRoot(final @NotNull VirtualFile root,
                                                               @NotNull VcsLogFilterCollection filterCollection) {
    VcsLogStructureFilter structureFilter = filterCollection.get(VcsLogFilterCollection.STRUCTURE_FILTER);
    if (structureFilter == null) return Collections.emptySet();
    Collection<FilePath> files = structureFilter.getFiles();

    return new HashSet<>(ContainerUtil.filter(files, filePath -> {
      VirtualFile virtualFile = filePath.getVirtualFile();
      return root.equals(virtualFile) || FileUtil.isAncestor(VfsUtilCore.virtualToIoFile(root), filePath.getIOFile(), false);
    }));
  }
public static @NotNull Set<FilePath> getFilteredFilesForRoot(final @NotNull VirtualFile root,
                                                               @NotNull VcsLogFilterCollection filterCollection)