code: private static boolean isSupportedEntity(Class<?> entityType) {
          try {
              Annotation annotation = entityType.getAnnotation(Serializer.class);
              if (annotation != null) {
                  return true;
              }
          } catch (Throwable th) {
              LOGGER.warn("Exception in checking for annotations", th);
          }
          return false;
      }
docs: Checks for the {@link Serializer} annotation for the given class.
  
  @param entityType The class to be serialized/deserialized.
  @return true if the annotation is present, false otherwise.