private static void addMethodInfo(Map<Class<?>, Set<MethodInfo>> methodInfos,
                                      String hostnamePattern, DefaultAnnotatedService service,
                                      Class<?> serviceClass) {

        final Route route = service.route();
        final EndpointInfo endpoint = endpointInfo(route, hostnamePattern);
        final Method method = service.method();
        final int overloadId = service.overloadId();
        final TypeSignature returnTypeSignature = getReturnTypeSignature(method);
        final List<FieldInfo> fieldInfos = fieldInfos(service.annotatedValueResolvers());
        route.methods().forEach(
                httpMethod -> {
                    final MethodInfo methodInfo = new MethodInfo(
                            serviceClass.getName(), method.getName(), overloadId, returnTypeSignature,
                            fieldInfos, ImmutableList.of(),
                            ImmutableList.of(endpoint), httpMethod,
                            AnnotatedServiceFactory.findDescription(method));

                    methodInfos.computeIfAbsent(serviceClass, unused -> new HashSet<>()).add(methodInfo);
                });
    }
A {@link DocServicePlugin} implementation that supports the {@link AnnotatedService}.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotatedDocServicePlugin.java