Java tutorial
import java.util.Collections; import java.util.Iterator; public class Main { public static void main(String[] args) { } public static Iterator getMy() { String nullFlag = null; if (nullFlag == null) { return Collections.emptyIterator(); } return null; } }