static <A> void collectionAdd(Collection<A> c, A a) {
  if (c != null && a != null) c.add(a);
}