void () { //noinspection unchecked List<TreeNodeOnVcsRevision> selection = (List<TreeNodeOnVcsRevision>)myDualView.getSelection(); myDetails.update(selection); if (selection.isEmpty()) { return; } if (myRevisionSelectionListener != null) { myRevisionSelectionListener.consume(selection.get(0).getRevision()); } }