// "Fix all 'Immutable collection creation can be replaced with collection factory call' problems in file" "true" import java.util.*; class Main { private final List myList; private final List myList3; private final Map myMap; private final Set mySet; private final Set mySet2; Main(Collection list, Map map, Set set) { myList = Collections.unmodifiableList(new ArrayList<>(list)); myList2 = Collections.unmodifiableList(new ArrayList<>(set)); myMap = Collections.unmodifiableMap(new HashMap<>(map)); mySet = Collections.unmodifiableSet(new HashSet<>(set)); mySet2 = Collections.unmodifiableSet(new HashSet<>(list)); } }