class SingleLiveSearchSelectionHandler implements LiveSearchSelectionHandler<TYPE> {

    @Override
    public void registerItem(final LiveSearchSelectorItem<TYPE> item) {
        if(selectedItem != null && selectedItem.getKey().equals(item.getKey())) {
            visibleItems.remove(selectedItem);
            item.select();
            selectedItem = item;
        }

        item.setSelectionCallback(() -> selectItem(item));

        visibleItems.add(item);
    }

    public  SingleLiveSearchSelectionHandler();

}