def open_views_for_file(window, file_name):
    """Return all views for the given file name."""
    view = window.find_open_file(file_name)
    if view is None:
        return []

    return [v for v in window.views() if v.buffer_id() == view.buffer_id()]