VisualPosition () { if (mySelectionStartPosition == null) { // We cache the value to avoid repeated invocations of Editor.logicalPositionToOffset which is currently slow for long lines mySelectionStartPosition = getSelectionModel().getSelectionStartPosition(); } return mySelectionStartPosition; }