Then change this line to: `Filter f = it.next()`