import java.util.*; class Iterator { Map mutableMap1 = new HashMap<>(); Map mutableMap2 = new HashMap<>(); void testFields() { mutableMap1.values().add("") mutableMap2.entrySet().iterator().remove(); } void testFunctionParameters(Collection immutableCollection, List mutableList) { for (Iterator it = immutableCollection.iterator(); it.hasNext(); ) { it.next(); } mutableList.listIterator().add(2); } }