private static boolean isBinaryContentRevision(@Nullable ContentRevision revision) {
    return revision instanceof BinaryContentRevision && !revision.getFile().isDirectory();
  }
private static boolean isBinaryContentRevision(@Nullable ContentRevision revision)