docs: private static Scope openScope(Object name, boolean shouldCheckMultipleRootScopes) {
      if (name == null) {
        throw new IllegalArgumentException("null scope names are not allowed.");
      }
  
      Scope scope = MAP_KEY_TO_SCOPE.get(name);
      if (scope != null) {
        return scope;
      }
      scope = new ScopeImpl(name);
      Scope previous = MAP_KEY_TO_SCOPE.putIfAbsent(name, scope);
      if (previous != null) {
        //if there was already a scope by this name, we return it
        scope = previous;
      } else if (shouldCheckMultipleRootScopes) {
        ConfigurationHolder.configuration.checkMultipleRootScopes(scope);
      }
      return scope;
    }