def METHOD_NAME(self, silo_modes: Iterable[SiloMode], table: str) -> str | None:
    # XXX This method has an override in getsentry for region silo primary splits.
    active_mode = SiloMode.get_current_mode()
    # In monolith mode we only use a single database.
    if active_mode == SiloMode.MONOLITH and not self.__is_simulated:
        return "default"
    for silo_mode in silo_modes:
        if self.__is_simulated:
            return self.__simulated_map[silo_mode]
        if active_mode == silo_mode:
            return "default"
    # If we're in tests raise an error, otherwise return 'no decision'
    # so that django skips migration operations that won't work.
    if in_test_environment():
        raise SiloConnectionUnavailableError(
            f"Cannot resolve table {table} in {silo_modes}. "
            f"Application silo mode is {active_mode} and simulated silos are not enabled."
        )
    else:
        return None