def METHOD_NAME(doc, create, extracted, **kwargs):
    if not create:
        # Simple build, do nothing
        return
    if extracted is not None:
        for t in extracted:
            doc.METHOD_NAME.add(t)