void (MouseEvent event) { int clickCount = event.getClickCount(); if (clickCount > 1 && clickCount % 2 == 0) { event.consume(); final int i = list.locationToIndex(event.getPoint()); if (i != -1) { list.setSelectedIndex(i); navigateToSelected(project, list, popup); } } }