// "Replace with findFirst()" "true" import java.util.List; import java.util.Map; public class Main { private int getInitialSize() {return 0;} public void testMap(Map> map) throws Exception { int firstSize = 10; System.out.println(firstSize); firstSize = getInitialSize(); // loop for(List list : map.values()) { if(list != null) { firstSize = list.size(); // comment break; } } System.out.println(firstSize); } }