@RequiresEdt
  public int visualLineToOffset(int visualLine) {
    assertNotInBulkMode();
    myEditor.getSoftWrapModel().prepareToMapping();
    return myMapper.visualLineToOffset(visualLine);
  }
@RequiresEdt
  public int visualLineToOffset(int visualLine)