Decorator to register a class as a checker for extensions.

def register(filetypes):
    """
    Decorator to register a class as a checker for extensions.
    """
    def decorator(clazz):
        for ext in filetypes:
            checkers.setdefault(ext, []).append(clazz)
        return clazz
    return decorator