public Collection<AnnotationType> getInheritedTypes() {
        if (superType == null) {
            return List.of();
        }
        return List.of(superType);
    }
WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.

@param type the type to inherit from
document/src/main/java/com/yahoo/document/annotation/AnnotationType.java