SubstanceCoreUtilities.uninstallMenu((JMenuItem) comp);
}
ButtonUI menuItemUI = menuItem.getUI();
if (menuItemUI instanceof SubstanceMenu) {
SubstanceMenu sMenu = (SubstanceMenu) menuItemUI;
if (sMenu.getAssociatedMenuItem() != null) {
menuItemUI.uninstallUI(menuItem);
}
}
for (ActionListener actionListener : menuItem.getActionListeners())