function isReturnStatementOfHook(node, context) {
  if (
    !node
    || !node.parent
    || node.parent.type !== 'ReturnStatement'
  ) {
    return false;
  }

  const callExpression = getClosestMatchingParent(node, context, astUtil.isCallExpression);
  return (
    callExpression
    && callExpression.callee
    && HOOK_REGEXP.test(callExpression.callee.name)
  );
}
Check whether given node is `ReturnStatement` of a React hook
@param {ASTNode} node The AST node
@param {Context} context eslint context
@returns {boolean} True if node is a `ReturnStatement` of a React hook, false if not