docs: public FunctionNode getEnclosingFunction() {
          AstNode parent = this.getParent();
          while (parent != null && !(parent instanceof FunctionNode)) {
              parent = parent.getParent();
          }
          return (FunctionNode)parent;
      }