docs: private static void removeScopeAndChildrenFromMap(ScopeNode scope) {
      MAP_KEY_TO_SCOPE.remove(scope.getName());
      scope.close();
      for (ScopeNode childScope : scope.childrenScopes.values()) {
        removeScopeAndChildrenFromMap(childScope);
      }
    }