@Override
  public int getMaxWidthInRange(int startOffset, int endOffset) {
    return ReadAction.compute(() -> myView.getMaxWidthInRange(startOffset, endOffset));
  }
@Override
  public int getMaxWidthInRange(int startOffset, int endOffset)