void (MouseEvent e) { super.mouseReleased(e); if (e.isConsumed()) return; Point point = e.getPoint(); int index = locationToIndex(point); if (index == -1 || !getCloseIconRect(index).contains(point)) return; if (isProjectInvalid(index)) { removeRecentProjectElement(getModel().getElementAt(index)); ListUtil.removeItem(getModel(), index); } else { invokePopup(e.getComponent(), e.getX(), e.getY()); } e.consume(); }