boolean (@NotNull K key, @NotNull V oldValue, @NotNull V newValue) { boolean replaced = myMap.replace(key, createValueReference(key, oldValue), createValueReference(key, newValue)); processQueue(); return replaced; }