*/
@Override
public void run() {
AnnotationSelection annotations = new AnnotationSelection(getStructuredSelection());
ICasDocument document = editor.getDocument();
CAS documentCAS = document.getCAS();
AnnotationFS mergedAnnotation = documentCAS.createAnnotation(annotations.getFirst().getType(),
annotations.getFirst().getBegin(), annotations.getLast().getEnd());
document.removeFeatureStructures(annotations.toList());
document.addFeatureStructure(mergedAnnotation);
}