private static DescriptiveTypeInfo newDescriptiveTypeInfo(
            DescriptiveTypeSignature typeSignature,
            DescriptiveTypeInfoProvider descriptiveTypeInfoProvider) {
        final Class<?> type = (Class<?>) typeSignature.descriptor();
        assert TBase.class.isAssignableFrom(type) ||
               TEnum.class.isAssignableFrom(type) ||
               TException.class.isAssignableFrom(type);

        final DescriptiveTypeInfo descriptiveTypeInfo =
                descriptiveTypeInfoProvider.newDescriptiveTypeInfo(type);
        return requireNonNull(descriptiveTypeInfo,
                              "descriptiveTypeInfoProvider.newDescriptiveTypeInfo() returned null");
    }
{@link DocServicePlugin} implementation that supports {@link THttpService}s.
thrift/thrift0.13/src/main/java/com/linecorp/armeria/internal/server/thrift/ThriftDocServicePlugin.java