private static DescriptiveTypeInfoProvider composeDescriptiveTypeInfoProvider(
                @Nullable DescriptiveTypeInfoProvider descriptiveTypeInfoProvider) {
            return typeDescriptor -> {
                if (descriptiveTypeInfoProvider != null) {
                    // Respect user-defined provider first.
                    final DescriptiveTypeInfo descriptiveTypeInfo =
                            descriptiveTypeInfoProvider.newDescriptiveTypeInfo(typeDescriptor);
                    if (descriptiveTypeInfo != null) {
                        return descriptiveTypeInfo;
                    }
                }

                for (DescriptiveTypeInfoProvider provider : SPI_DESCRIPTIVE_TYPE_INFO_PROVIDERS) {
                    final DescriptiveTypeInfo descriptiveTypeInfo =
                            provider.newDescriptiveTypeInfo(typeDescriptor);
                    if (descriptiveTypeInfo != null) {
                        return descriptiveTypeInfo;
                    }
                }
                return null;
            };
        }
Creates a new instance with example HTTP headers and example requests and injected scripts.
core/src/main/java/com/linecorp/armeria/server/docs/DocService.java