List<CaretState> () { return Collections.singletonList(new CaretState(getLogicalPosition(), myEditor.offsetToLogicalPosition(myEditor.getSelectionModel().getSelectionStart()), myEditor.offsetToLogicalPosition(myEditor.getSelectionModel().getSelectionEnd()))); }