Collection<AnnotationFS> toRemove = new LinkedList<AnnotationFS>();
while (matcher.find()) {
int begin = matcher.start();
int end = matcher.end();
MARKUP markup = new MARKUP(jCas, begin, end);
markup.addToIndexes();
FSIterator<AnnotationFS> subiterator = cas.getAnnotationIndex(result).subiterator(markup);
while (subiterator.isValid()) {
AnnotationFS fs = subiterator.get();
toRemove.add(fs);
subiterator.moveToNext();