@Override
  public InputMethodRequests getInputMethodRequests() {
    if (!allowInputMethodsInSpeedSearch()) {
      return null;
    }

    if (myInputMethodRequests == null) {
      myInputMethodRequests = new SpeedSearchInputMethodRequests() {
        @Override
        protected void ensurePopupIsShown() {
          if (mySearchPopup == null) {
            showPopup();
          }
        }

        @Override
        protected InputMethodRequests getDelegate() {
          JTextField field = getSearchField();
          if (field == null) {
            return null;
          } else {
            return field.getInputMethodRequests();
          }
        }
      };
    }

    return myInputMethodRequests;
  }
@Override
  public InputMethodRequests getInputMethodRequests()