this.actor = actor;
}
public void choose (T item) {
if (item == null) throw new IllegalArgumentException("item cannot be null.");
if (isDisabled) return;
<BUG>snapshot();
if ((toggle || (!required && selected.size == 1) || UIUtils.ctrl()) && selected.contains(item)) {</BUG>
if (required && selected.size == 1) return;
selected.remove(item);
lastSelected = null;

this.actor = actor;
}
public void choose (T item) {
if (item == null) throw new IllegalArgumentException("item cannot be null.");
if (isDisabled) return;
snapshot();
try {
if ((toggle || (!required && selected.size == 1) || UIUtils.ctrl()) && selected.contains(item)) {
if (required && selected.size == 1) return;
selected.remove(item);
lastSelected = null;
