static int numberOfChildren(final Container c) { ret c == null ? 0 : swing(func -> int { c.getComponentCount() }); }