If the creation of the collection is out of the hands of the class in which it is to be modifiable, then it is impossible to make it modifiable inside that class.
Suppose that someone passes you an immutable list (of an interface type). You don't know what implementation is behind the interface. It could be an implementation that doesn't have any methods to mutate it at all. You can't magically create those methods when you need them.
Why do you have this requirement? If the program has been properly designed, there's probably a good reason why the collection that you get passed is immutable, and
you should find a different solution for the problem you're facing.