getParentStatelessComponent(node) {
      let scope = getScope(context, node);
      while (scope) {
        const statelessComponent = utils.getStatelessComponent(scope.block);
        if (statelessComponent) {
          return statelessComponent;
        }
        scope = scope.upper;
      }
      return null;
    }
Get the parent stateless component node from the current scope

@param {ASTNode} node The AST node being checked
@returns {ASTNode} component node, null if we are not in a component