@Override
  public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes) {
    InputMethodRequests delegate = getDelegate();

    if (delegate == null) {
      if (beginIndex == 0 && endIndex == 0) {
        return (new AttributedString("")).getIterator();
      }
    }

    ensurePopupIsShown();
    delegate = getDelegate();
    assert delegate != null;
    return delegate.getCommittedText(beginIndex, endIndex, attributes);
  }
@Override
  public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes)