docs: public static Map<EventType, Method> getEventMap(Class<?> serviceInterface) {
      if (!serviceInterface.isInterface()) {
        Class type = serviceInterface;
        Map<EventType, Method> events = new HashMap<>();
        while (type != Object.class) {
          for (Class<?> iface : type.getInterfaces()) {
            events.putAll(findEvents(iface));
          }
          type = type.getSuperclass();
        }
        return events;
      }
      return findEvents(serviceInterface);
    }