void () { while (myDelegate.hasNext()) { ErrorStripeMarkerImpl next = myDelegate.next(); RangeHighlighterEx highlighter = next.getHighlighter(); if (highlighter.isValid()) { myNext = highlighter; return; } else { myToRemove.add(next); } } myNext = null; }