static bool syncClear_trueIfChanged(Collection c) { if (c == null) false; synchronized(collectionMutex(c)) { if (c.isEmpty()) false; c.clear(); true; } }