static void addAll(Collection c, Iterable b) { if (c != null && b != null) for (A a : b) c.add(a); } static bool addAll(Collection c, Collection b) { ret c != null && b != null && c.addAll(b); } static bool addAll(Collection c, B... b) { ret c != null && b != null && c.addAll(Arrays.asList(b)); } ifclass Collector static void addAll(Collector c, Iterable b) { if (c != null && b != null) for (A a : b) c.add(a); } endif static Map addAll(Map a, Map b) { if (a != null && b != null) a.putAll(b); ret a; } static A addAll(A c, Cl components) { ret addComponents(c, components); } static A addAll(A c, Component... components) { ret addComponents(c, components); }