Iterator<T> () { return new Iterator<T>() { @Override public boolean hasNext() { return false; } @Override public T next() { return GenericsTest.next(GenericsTest.this); } @Override public void remove() { } }; }