public void setCaretAndShow(long pageNumber, int symbolOffsetInPage) {
    targetCaretPosition.set(pageNumber, symbolOffsetInPage);
    isNeedToShowCaret = true;
    requestUpdate();
  }
public void setCaretAndShow(long pageNumber, int symbolOffsetInPage)