@staticmethod
def _get_state_value(state: Optional[Mapping[(str, Any)]], key: str, default: Optional[Any]=None) -> Any:
    if (state is not None):
        return state.get(key, default)
    return default
@staticmethod
def _get_state_value(state: Optional[Mapping[(str, Any)]], key: str, default: Optional[Any]=None) -> Any:
    if (state is not None):
        return state.get(key, default)
    return default