public static boolean affectsDirectory(@NotNull Change change, @NotNull FilePath directory) {
    return affectsDirectory(directory, change.getAfterRevision()) || affectsDirectory(directory, change.getBeforeRevision());
  }
public static boolean affectsDirectory(@NotNull Change change, @NotNull FilePath directory)