private DataType createDocRef(ParsedType pType) {
        var ref = pType.getReferencedDocumentType();
        assert(ref.getVariant() == ParsedType.Variant.DOCUMENT);
        return new NewDocumentReferenceDataType(findDocFromSchemas(ref.name()));
    }
Helper class for converting ParsedType instances to DataType

@author arnej27959
config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedTypes.java