private @NotNull JBIterable<LighterASTNode> walkChildrenScopes(JBIterable<? extends LighterASTNode> children) {
    return children.flatMap(child -> getDeclarations(child, null));
  }
private @NotNull JBIterable<LighterASTNode> walkChildrenScopes(JBIterable<? extends LighterASTNode> children)