void (KeyEvent e) { if (KeyEvent.VK_SPACE == e.getKeyCode()) { List<SvnChangeList> selected = myRevisionsList.getSelectedObjects(); if (!selected.isEmpty()) { selected.forEach(ToBeMergedDialog.this::toggleInclusion); myRevisionsList.repaint(); e.consume(); } } }