static L createOrAddToSyncList(L list, A a) { if (list == null) list = syncList(); list.add(a); ret list; }