function isClassRefInClassDecorator(variable, reference) {
	if (variable.defs[0].type !== "ClassName") {
		return false;
	}

	if (
		!variable.defs[0].node.decorators ||
		variable.defs[0].node.decorators.length === 0
	) {
		return false;
	}

	for (const deco of variable.defs[0].node.decorators) {
		if (
			reference.identifier.range[0] >= deco.range[0] &&
			reference.identifier.range[1] <= deco.range[1]
		) {
			return true;
		}
	}

	return false;
}
Decorators are transpiled such that the decorator is placed after the class declaration
So it is considered safe
@param {Variable} variable The variable to check.
@param {Reference} reference The reference to check.
@returns {boolean} `true` if the reference is in a class decorator.