@Nullable
  @Override
  public AttributedCharacterIterator getSelectedText(AttributedCharacterIterator.Attribute[] attributes) {
    InputMethodRequests delegate = getDelegate();
    if (delegate == null) {
      return null;
    } else {
      return delegate.getSelectedText(attributes);
    }
  }
@Nullable
  @Override
  public AttributedCharacterIterator getSelectedText(AttributedCharacterIterator.Attribute[] attributes)