def _find_file_type(file_names, extension):
    """
    Returns files that end with the given extension from a list of file names.
    """
    return [f for f in file_names if f.lower().endswith(extension)]