def METHOD_NAME(name: str, typ: str):
    warnings.warn(
        trans._(
            "Private attribute access ('{typ}.{name}') in this context (e.g. inside a plugin widget or dock widget) is deprecated and will be unavailable in version 0.5.0",
            deferred=True,
            name=name,
            typ=typ,
        ),
        category=FutureWarning,
        stacklevel=3,
    )
    # This is code prepared for a moment where we want to block access to private attributes
    # raise AttributeError(
    #     trans._(
    #         "Private attribute set/access ('{typ}.{name}') not allowed in this context.",
    #         deferred=True,
    #         name=name,
    #         typ=typ,
    #     )
    # )