code: public static boolean isSanitizedContentField(FieldDescriptor fieldDescriptor) {
      return fieldDescriptor.getType() == Type.MESSAGE
          && SAFE_PROTO_TYPES.contains(fieldDescriptor.getMessageType().getFullName());
    }
docs: Returns true if fieldDescriptor holds a sanitized proto type.