code: function isOuterClass(variable, reference) {
      return (
          variable.defs[0].type === "ClassName" &&
          variable.scope.variableScope !== reference.from.variableScope
      );
  }
docs: Checks whether or not a given variable is a class declaration in an upper function scope.
  
  @param {eslint-scope.Variable} variable - A variable to check.
  @param {eslint-scope.Reference} reference - A reference to check.
  @returns {boolean} `true` if the variable is a class declaration.