Object o = e.next();
if (o instanceof Annotation) {
Annotation a = (Annotation) o;
if (compareRulerLine(model.getPosition(a), document, line) == 1) {
if (a instanceof AnnotationBag) {
AnnotationBag bag = (AnnotationBag) a;
Iterator iterator = bag.iterator();
while (iterator.hasNext()) {
Annotation annotation = (Annotation) iterator
.next();
addText(model, annotation, messages,
messagesAtPosition);