boolean (@NotNull MouseEvent event, int clickCount) { int selectedIndex = myList.getSelectedIndex(); if (selectedIndex >= 0) { Rectangle cellBounds = myList.getCellBounds(selectedIndex, selectedIndex); if (cellBounds.contains(event.getPoint())) { AnAction selection = myList.getSelectedValue(); if (selection != null) { AnAction selectedAction = performSelectedAction(event, selection); // remove action from a list if needed if (selectedAction instanceof ReopenProjectAction) { if (((ReopenProjectAction)selectedAction).isRemoved()) { ListUtil.removeSelectedItems(myList); } } } } } return true; }