if (menuElement == null) return false;
  static boolean processKeyBindingHelper(MenuElement menuElement, KeyStroke ks,                                         KeyEvent e, int condition,                                         boolean pressed)  {    // First check the menuElement itself, if it's a JComponent    if (menuElement instanceof JComponent        && ((JComponent) menuElement).processKeyBinding(ks, e, condition,                                                        pressed))      return true;        // If that didn't consume it, check all the children recursively    MenuElement[] children = menuElement.getSubElements();    for (int i = 0; i < children.length; i++)      if (processKeyBindingHelper(children[i], ks, e, condition, pressed))        return true;    return false;  }