code: public static EventType from(final Class<?> clazz) {
          final Optional<Integer> foundEventType = TYPES.entrySet().stream()
                  .filter(entry -> entry.getValue().equals(clazz)).map(Entry::getKey).findAny();
  
          return foundEventType.map(EventType::new).orElse(null);
      }
docs: Returns a {@link EventType} based on the given class type.
  
  @param clazz
  the clazz type to retrieve the corresponding {@link EventType}
  .
  @return the corresponding {@link EventType} or {@code null} if the clazz
  does not have a {@link EventType}.