@Override
  public Rectangle getTextLocation(TextHitInfo offset) {
    InputMethodRequests delegate = getDelegate();
    if (delegate == null) {
      return new Rectangle();
    } else {
      return delegate.getTextLocation(offset);
    }
  }
@Override
  public Rectangle getTextLocation(TextHitInfo offset)