void (final MouseEvent e) { if (e.isConsumed()) return; myPanel.getModel().setSelectedIndex(selectedIndex); if (e.isPopupTrigger()) return; int idx = getList().locationToIndex(e.getPoint()); if (idx != -1) { Object value = getList().getModel().getElementAt(idx); myPanel.navigateInsideBar(sourceItemIndex, value, SystemInfo.isMac ? e.isMetaDown() : e.isControlDown()); } }