void (@NotNull Collection<String> items) { if (items.isEmpty()) throw new IllegalArgumentException("items needs to contain at least one item"); myItems.clear(); myItems.addAll(items); if (!myItems.contains(mySelectedItem)) { setSelectedItem(myDefaultItem != null ? myDefaultItem : myItems.get(0)); } }