<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def detect_file_triggers(trigger_patterns):
 """The existence of files matching configured globs will trigger a version bump"""

    triggers = set()
    for trigger, pattern in trigger_patterns.items():
        matches = glob.glob(pattern)
        if matches:
            _LOG.debug("trigger: %s bump from %r\n\t%s", trigger, pattern, matches)
            triggers.add(trigger)
        else:
            _LOG.debug("trigger: no match on %r", pattern)
    return triggers