def METHOD_NAME(ui_type_hints, db_function_subclass):
    alias_hints = hints.get_hints_with_id(db_function_subclass, 'use_this_alias_when')
    aliases = tuple(
        _process_alias_hint(ui_type_hints, alias_hint)
        for alias_hint in alias_hints
    )
    return aliases