void () { int targetCaretOffsetInDocument = tryGetTargetCaretOffsetInDocumentWithMargin(); if (targetCaretOffsetInDocument != -1) { if (!isRealCaretInsideTargetVisibleArea()) { editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE); } } else { LOG.warn("[Large File Editor Subsystem] EditorMode.update(): can't show caret. " + " targetCaretPosition.pageNumber=" + targetCaretPosition.pageNumber + " targetCaretPosition.symbolOffsetInPage=" + targetCaretPosition.symbolOffsetInPage + " targetVisiblePosition.pageNumber=" + targetVisiblePosition.pageNumber + " targetVisiblePosition.verticalScrollOffset=" + targetVisiblePosition.verticalScrollOffset); } isNeedToShowCaret = false; }