function isPromiseExecutor(node, sourceCode) {
	const parent = node.parent;

	return (
		parent.type === "NewExpression" &&
		parent.arguments[0] === node &&
		parent.callee.type === "Identifier" &&
		parent.callee.name === "Promise" &&
		sourceCode.isGlobalReference(parent.callee)
	);
}
Determines whether the given function node is used as a Promise executor.
@param {ASTNode} node The node to check.
@param {SourceCode} sourceCode Source code to which the node belongs.
@returns {boolean} `true` if the node is a Promise executor.