@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof AnnotationType that)) return false;

        return name.equals(that.name);
    }
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