private static void addMethodInfo(Map<Class<?>, Set<MethodInfo>> methodInfos,
                                      String hostnamePattern, AbstractGraphqlService service, Route route) {
        final EndpointInfo endpoint = endpointInfo(route, hostnamePattern);
        final List<FieldInfo> fieldInfos = fieldInfos();
        final Class<?> clazz = service.getClass();
        final MethodInfo methodInfo = new MethodInfo(
                clazz.getName(), DEFAULT_METHOD_NAME, 0, JSON, fieldInfos, ImmutableList.of(),
                ImmutableList.of(endpoint), HttpMethod.POST, DescriptionInfo.empty());
        methodInfos.computeIfAbsent(clazz, unused -> new HashSet<>()).add(methodInfo);
    }
A {@link DocServicePlugin} implementation that supports the {@link AbstractGraphqlService}.
graphql/src/main/java/com/linecorp/armeria/internal/server/graphql/GraphqlDocServicePlugin.java