static int comboBoxFindItem_withSimplifier(final JComboBox cb, fS item, fO simplifier) { ret cb == null ? null : swing(func -> int { ComboBoxModel model = cb.getModel(); int n = model.getSize(); for i to n: if (eq(callF(simplifier, model.getElementAt(i)), item)) ret i; ret -1; }); }