this.labelProvider = labelProvider;
label = new StyledLabel();
//update the selection
this.selectionModel = selectionModel;
selectionModel.addSelectionChangeListener( new SelectionChangeListener() {
@Override
public void selectionChanged( @NotNull Lookup selectedObjects ) {
S selected = selectedObjects.lookup( selectionType );
updateLabel( selected );
}