docs: function isOuterClass(variable, reference) {
      if (variable.defs[0].type !== "ClassName") {
          return false;
      }
  
      if (variable.scope.variableScope === reference.from.variableScope) {
          // allow the same scope only if it's the top level global/module scope
          if (!isTopLevelScope(variable.scope.variableScope)) {
              return false;
          }
      }
  
      return true;
  }