@Override
    public boolean equals(Object obj) {
        if (!(obj instanceof IndexItem<?,?>)) {
            return false;
        }
        IndexItem<? extends Annotation,?> o = (IndexItem<?,?>) obj;
        return structure.equals(o.structure) && annotationType == o.annotationType && loader == o.loader;
    }