public ServiceInfo withMethods(Iterable<MethodInfo> methods) {
        requireNonNull(methods, "methods");
        if (methods.equals(this.methods)) {
            return this;
        }

        return new ServiceInfo(name, methods, exampleHeaders, descriptionInfo);
    }
Returns a new {@link ServiceInfo} with the specified {@link MethodInfo}s.
Returns {@code this} if this {@link ServiceInfo} has the same {@link MethodInfo}s.
core/src/main/java/com/linecorp/armeria/server/docs/ServiceInfo.java