PopupHandler (@NotNull JTable table, @NotNull ActionGroup group, @NotNull String place) { return installConditionalPopup(table, group, place, null, (comp, x, y) -> Arrays.binarySearch(table.getSelectedRows(), table.rowAtPoint(new Point(x, y))) > -1); }