code: function () {
        let scope = context.getScope();
        while (scope) {
          const node = scope.block;
          // Ignore non functions
          const isFunction = /Function/.test(node.type);
          // Ignore classes methods
          const isNotMethod = !node.parent || node.parent.type !== 'MethodDefinition';
          // Ignore arguments (callback, etc.)
          const isNotArgument = !node.parent || node.parent.type !== 'CallExpression';
          if (isFunction && isNotMethod && isNotArgument) {
            return node;
          }
          scope = scope.upper;
        }
        return null;
      }
docs: Get the parent stateless component node from the current scope
  
  @returns {ASTNode} component node, null if we are not in a component