void (@Nullable Object o) { Item item = (Item)o; if (item == null || item.myModule != null) { myPreventPopupClosing = false; super.setSelectedItem(item); } else { item.myOptionValue = !item.myOptionValue; myPreventPopupClosing = true; update(); } }