code: public boolean isTopLevelMenu() {
  		MenuContainer container = WebUtilities.getAncestorOfClass(MenuContainer.class, this);
  		if (container instanceof WMenuItemGroup) {
  			container = WebUtilities.getAncestorOfClass(MenuContainer.class, container);
  		}
  		return container instanceof WMenu;
  	}
docs: Indicates whether this is a top-level menu (ie. attached to a menu bar).
  
  @return {@code true} if this is a top-level menu.