public static boolean isBinaryRevision(@Nullable ContentRevision cr) {
    if (cr == null) return false;
    if (cr instanceof BinaryContentRevision) return true;
    return cr.getFile().getFileType().isBinary();
  }
public static boolean isBinaryRevision(@Nullable ContentRevision cr)