for (ConfigKey<?> kSet: MutableSet.copyOf(local.keySet()).putAll(parents.keySet())) { Maybe<Object> localValue = local.containsKey(kSet) ? Maybe.ofAllowingNull(local.get(kSet)) : Maybe.absent(); ReferenceWithError<ConfigValueAtContainer<TContainer, ?>> vpr = parents.remove(kSet);