static Pair generalDefinitions_addMultiple(Collection> list) { MultiMap> mm = mechMultiMapPairsCI(generalDefinitions_listName()); new LinkedHashMap toAdd; for (Pair p : list) if (nempty(p.a) && nempty(p.b) && !mapPairB(f dropGlobalID, mm.get(p.a)).contains(p)) toAdd.put(p.a, appendGlobalID(p.b)); if (empty(toAdd)) ret pair(false, "Nothing to do"); addToMechMap(generalDefinitions_listName(), toAdd); ret pair(true, print(n2(toAdd, "definition") + " added")); }