void (VarNamesCollector vc) { Map<VarVersionPair, String> tempVarNames = new HashMap<>(mapVarNames); for (Entry<VarVersionPair, String> ent : tempVarNames.entrySet()) { mapVarNames.put(ent.getKey(), vc.getFreeName(ent.getValue())); } }