JBIterable<LighterASTNode> (List<LighterASTNode> children, @Nullable LighterASTNode lastParent) { return JBIterable.from(children).filter(node -> lastParent == null || node.getStartOffset() < lastParent.getStartOffset()); }