AnnotationFS matchedAnnotation = matchedAnnotationsOfRoot.get(0);
if (matchedAnnotation != null) {
drm.setBegin(matchedAnnotation.getBegin());
drm.setEnd(matchedAnnotation.getEnd());
if (addToIndex || withMatches)
drm.addToIndexes();
}
}
return drm;
}