void (@NlsContexts.Label String selectedItem) { if (!myItems.contains(selectedItem)) throw new IllegalArgumentException("selected item is not contained in items"); mySelectedItem = selectedItem; setText(selectedItem); }