static bool syncAdd(Collection c, A b) { if (c == null) false; synchronized(c) { ret c.add(b); } }