private static boolean affectsDirectory(@NotNull FilePath directory, @Nullable ContentRevision revision) {
    if (revision == null) return false;
    return VfsUtilCore.isAncestor(directory.getIOFile(), revision.getFile().getIOFile(), false);
  }
private static boolean affectsDirectory(@NotNull FilePath directory, @Nullable ContentRevision revision)