protected static boolean isArmedOrSelected( JMenuItem menuItem ) {
		return menuItem.isArmed() || (menuItem instanceof JMenu && menuItem.isSelected());
	}
Returns {@code true} if either the menu item is armed (mouse over item)
or it is a {@code JMenu} and selected (shows submenu).
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatMenuItemRenderer.java