AbstractTestProxy (final int startIndex) { for (int i = nextIndex(startIndex); 0 <= i && i < myAllTests.size(); i = nextIndex(i)) { final AbstractTestProxy nextDefect = myAllTests.get(i); if (Filter.DEFECTIVE_LEAF.shouldAccept(nextDefect)) return nextDefect; } return null; }