List<AnnotationFS> annotationsMatchedByRuleElementofAction = match.getMatchedAnnotationsOf(element, stream);
int size = Math.min(annotationsMatchedByRuleElementofAction.size(), destinationAnnotationSpans.size());
for (int i = 0; i < size; i++) {
AnnotationFS eachMatched = annotationsMatchedByRuleElementofAction.get(i);
AnnotationFS eachDestination = destinationAnnotationSpans.get(i);
Set<AnnotationFS> allAnchoredAnnotations = new TreeSet<AnnotationFS>(new AnnotationComparator());
Set<AnnotationFS> beginAnchors = stream.getBeginAnchor(eachMatched.getBegin()).getBeginAnchors(targetType);
Set<AnnotationFS> endAnchors = stream.getEndAnchor(eachMatched.getEnd()).getEndAnchors(targetType);
allAnchoredAnnotations.addAll(beginAnchors);
allAnchoredAnnotations.addAll(endAnchors);
for (AnnotationFS eachAnchored : allAnchoredAnnotations) {