def METHOD_NAME(self, any=False):
    # type: (bool) -> Any
    if not hasattr(self, Anchor.attrib):
        return None
    if any or self.anchor.always_dump:
        return self.anchor
    return None