static int jlistSize(final JList l) { ret l == null ? 0 : swing(func -> Int { l.getModel().getSize() }); }