boolean (@NotNull LighterASTNode element) { ProgressManager.checkCanceled(); return nextIndex < sortedOffsets.length && element.getStartOffset() <= nextOffset && nextOffset < element.getEndOffset(); }