def METHOD_NAME(template):
    """Return set of existing License: short names"""
    ids = set()
    for line in template.splitlines():
        if line.startswith('License:'):
            ids.add(line.split(None, 1)[1].lower())
    return ids