function isArgumentOfGlobalMethodCall(
	node,
	sourceCode,
	objectName,
	methodName,
	index,
) {
	const callNode = node.parent;

	return (
		callNode.type === "CallExpression" &&
		callNode.arguments[index] === node &&
		astUtils.isSpecificMemberAccess(
			callNode.callee,
			objectName,
			methodName,
		) &&
		sourceCode.isGlobalReference(
			astUtils.skipChainExpression(callNode.callee).object,
		)
	);
}
Determines whether the given node is an argument of the specified global method call, at the given `index` position.
E.g., for given `index === 1`, this function checks for `objectName.methodName(foo, node)`, where objectName is a global variable.
@param {ASTNode} node The node to check.
@param {SourceCode} sourceCode Source code to which the node belongs.
@param {string} objectName Name of the global object.
@param {string} methodName Name of the method.
@param {number} index The given position.
@returns {boolean} `true` if the node is argument at the given position.