@RequiresEdt
  public int offsetToVisualLine(int offset, boolean beforeSoftWrap) {
    assertNotInBulkMode();
    myEditor.getSoftWrapModel().prepareToMapping();
    return myMapper.offsetToVisualLine(offset, beforeSoftWrap);
  }
@RequiresEdt
  public int offsetToVisualLine(int offset, boolean beforeSoftWrap)