}
}
private void writeSelection(EditorContext context) {
MutableAnnotationSet.Persistent document = context.getDocument();
FocusedRange selection = context.getSelectionHelper().getSelectionRange();
String compositionState = context.getImeCompositionState();
double currentTimeMillis = clock.currentTimeMillis();
writeSelection(document, selection, compositionState, currentTimeMillis);
}