docs: public static Map<Method, EventType> getMethodMap(Class<?> serviceInterface) {
      if (!serviceInterface.isInterface()) {
        Map<Method, EventType> events = new HashMap<>();
        for (Class<?> iface : serviceInterface.getInterfaces()) {
          events.putAll(findMethods(iface));
        }
        return events;
      }
      return findMethods(serviceInterface);
    }