def is_indexed_foreign_key(constraint):
    """
    Whether or not given foreign key constraint's columns have been indexed.

    :param constraint: ForeignKeyConstraint object to check the indexes
    """
    return any(
        set(column.name for column in index.columns)
        ==
        set(constraint.columns)
        for index
        in constraint.table.indexes
    )