private static Collection<NewDocumentType> specificInheriteds(NewDocumentType type) {
        List<NewDocumentType> ret = new ArrayList<>();
        for (NewDocumentType t : type.getInherited()) {
            if (!"document".equals(t.getName())) ret.add(t);
        }
        return ret;
    }
The inherited types that are not Document
@return collection of specific inherited types
vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java