}
}
// now we are left with all chains we want to return
Set<AnnotationSet> returnSet = new HashSet<AnnotationSet>();
for (AnnotationChain chain : chains) {
AnnotationSet aset = new ImmutableAnnotationSetImpl(range.getDocument(),
chain.getChain()) {
private static final long serialVersionUID = -6703131102439043539L;
};
returnSet.add(aset);
}