replace {list}.iterator().next() with {list}.get(0)