def METHOD_NAME(functions, qualifier_types):
    for _, f in functions.items():
        ret_type = f['ret_type']
        if ret_type in qualifier_types:
            f['ret_type'] = qualifier_types[ret_type]
        substitute_qualifier_types_in_params(f['params'], qualifier_types)