def METHOD_NAME(type, qualifier_types):
    ret_type = type['ret_type']
    if ret_type in qualifier_types:
        type['ret_type'] = qualifier_types[ret_type]
    substitute_qualifier_types_in_params(type['params'], qualifier_types)