void () { if (!myOccurrenceConsumer.isNeedToDo()) return; int start = getTokenStart(); int end = getTokenEnd(); start = Math.max(start, myTodoScannedBound); if (start >= end) return; // this prevents scanning of the same comment twice CharSequence input = myCachedBufferSequence.subSequence(start, end); if (myTodoScanningState == null) myTodoScanningState = createTodoScanningState(IndexPatternUtil.getIndexPatterns()); advanceTodoItemsCount(input, myOccurrenceConsumer, myTodoScanningState); myTodoScannedBound = end; }