def METHOD_NAME(class_or_name: Union[str, Type], attr_name: str):
    for classname in _get_all_bases(class_or_name):
        if (classname, attr_name) in Replacements._attr_rep:
            return Replacements._attr_rep[(classname, attr_name)]
    return None