code: static boolean referencesThis(Node n) {
      if (n.isFunction()) {
        return referencesThis(NodeUtil.getFunctionParameters(n))
            || referencesThis(NodeUtil.getFunctionBody(n));
      } else {
        return has(n, Node::isThis, MATCH_ANYTHING_BUT_NON_ARROW_FUNCTION);
      }
    }
docs: Returns true if the shallow scope contains references to 'this' keyword