Variables captured by the inner lambdas need to be handled, as well as the `LAMBDA` modifier needs to be added to the lambda method decl and type decl. A recent Ruby version of this can be found here: https://github.com/joernio/joern/pull/4260