public boolean dispatchInputMethodEvent(InputMethodEvent e) {
    JBPopup popup = getFocusedPopup();
    if (popup == null) {
      return false;
    }

    Window window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow();
    if (window instanceof Dialog && ((Dialog)window).isModal()) {
      if (!SwingUtilities.isDescendingFrom(popup.getContent(), window)) return false;
    }

    return popup.dispatchInputMethodEvent(e);
  }
public boolean dispatchInputMethodEvent(InputMethodEvent e)