Replaces the construction of an immutable collection with a mutable one.