def METHOD_NAME(
    self,
    *,
    container: bool | None = None,
):
    """
    This method is deprecated. Please set these arguments in the constructor instead.
    """
    warn_style_method_deprecation()
    if container is not None:
        self.container = container
    return self