code: public static Collection<Class<?>> serviceInterfaces(Object serviceObject) {
      Class<?>[] interfaces = serviceObject.getClass().getInterfaces();
      return Arrays.stream(interfaces)
          .filter(interfaceClass -> interfaceClass.isAnnotationPresent(Service.class))
          .collect(Collectors.toList());
    }
docs: Util function to get service interfaces collections from service instance.
  
  @param serviceObject with extends service interface with @Service annotation.
  @return service interface class.