def METHOD_NAME(self):
    for (type, verb), METHOD_NAME in _ACTION_ICONS.items():
        type_matches = type is None or type == self.type
        action_matches = verb is None or verb == self.verb
        if type_matches and action_matches:
            return METHOD_NAME
    return _DEFAULT_ICON