public boolean inherits(AnnotationType type) {
        if (equals(type)) return true;
        if (superType != null && superType.inherits(type)) return true;
        return false;
    }
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