docs: def _confused_state(self, request: Request) -> Type[BaseState]:
          """
          If we're confused, find which state to call.
          """
  
          origin = request.register.get(Register.STATE)
  
          if origin in self._allowed_states:
              try:
                  return import_class(origin)
              except (AttributeError, ImportError):
                  pass
  
          return import_class(settings.DEFAULT_STATE)