When debugging an idea, it is possible to substitute the values of variables Evaluate -> set value, but can I change the collection (delete the collection item)?
I tried to remove
col.remove(col.iterator().next())
But something did not work
Method threw 'java.lang.UnsupportedOperationException' exception.

col.remove(indexOfElement)only when itcol.remove(indexOfElement). If during a cycle, then there will be a ConcurrentModificationException anyway. - Alexey Shimansky