static bool syncSetAdd(Cl c, A a) { if (c == null) false; synchronized(collectionMutex(c)) { if (c.contains(a)) false; c.add(a); true; } }