manager.setSelectedPath(Utilities.removeFromPath(manager.getSelectedPath(), menuItem));
}
public void mouseReleased(final MouseEvent e) {
MenuSelectionManager defaultManager = MenuSelectionManager.defaultManager();
if (defaultManager.componentForPoint(e.getComponent(), e.getPoint()) == menuItem
|| Utilities.isEmptyArray(defaultManager.getSelectedPath())) {
doClick(defaultManager);
} else {
defaultManager.processMouseEvent(e);