Returns violation message if validated and constraint sets have no intersection
    :param to_validate:
    :param constraint:
    :param violation_cfg:
    :return:

def no_intersection(to_validate, constraint, violation_cfg):
    """
    Returns violation message if validated and constraint sets have no intersection
    :param to_validate:
    :param constraint:
    :param violation_cfg:
    :return:
    """
    if len(constraint) == 0 or len(set(constraint).intersection(to_validate)) > 0:
        return None
    else:
        violation_cfg[Check.CFG_KEY_VIOLATION_MSG] = violation_cfg[Check.CFG_KEY_VIOLATION_MSG].format(constraint)
        return violation_cfg