List<AnnotationFS> selection = new ArrayList<AnnotationFS>();
if (isSomethingSelected()) {
Point selectedText = getSourceViewer().getTextWidget().getSelectionRange();
Span selecectedSpan = new Span(selectedText.x, selectedText.y);
Collection<AnnotationFS> selectedAnnotations = getAnnotation(getDocument().getCAS(),
getAnnotationMode(), selecectedSpan);
for (AnnotationFS annotation : selectedAnnotations) {