public void setSelected(final T item, final boolean selected) {
        if (item != null) {
            selectedItems.remove(item);
            if (selected) {
                selectedItems.addFirst(item);
            }
        }
    }
Sets the selected state of the specified item.
stroom-core-client-widget/src/main/java/stroom/widget/util/client/Selection.java