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