@classmethod
def register_transformer(cls, t):
    """Add a transformer to subtransformers list.

        Used as a class decorator for transformer plugins.
        """
    cls.subtransformers.append(t)
    return t
