def find_collNames(output_list):
    """
    Return list of collection names collected from refs in output_list.
    """
    colls = []
    for out in output_list:
        if out.kind in {"STEP", "ITEM"}:
            colls.append(out.collName)
        elif out.kind == "IF":
            colls.append(out.refs[0].collName)
    return colls