function checkAndReportPrototypeExtension(identifierNode) {
			if (!isPrototypePropertyAccessed(identifierNode)) {
				return; // This is not `*.prototype` access.
			}

			/*
			 * `identifierNode.parent` is a MemberExpression `*.prototype`.
			 * If it's an optional member access, it may be wrapped by a `ChainExpression` node.
			 */
			const prototypeNode =
				identifierNode.parent.parent.type === "ChainExpression"
					? identifierNode.parent.parent
					: identifierNode.parent;

			if (isAssigningToPropertyOf(prototypeNode)) {
				// `*.prototype` -> MemberExpression -> AssignmentExpression
				reportNode(prototypeNode.parent.parent, identifierNode.name);
			} else if (isInDefinePropertyCall(prototypeNode)) {
				// `*.prototype` -> CallExpression
				reportNode(prototypeNode.parent, identifierNode.name);
			}
		}
Check to see if object prototype access is part of a prototype
extension. There are three ways a prototype can be extended:
1. Assignment to prototype property (Object.prototype.foo = 1)
2. Object.defineProperty()/Object.defineProperties() on a prototype
If prototype extension is detected, report the AssignmentExpression
or CallExpression node.
@param {ASTNode} identifierNode The Identifier representing the object
which prototype is being accessed and possibly extended.
@returns {void}