def run(self, document):
    if (not (document.uri in [i.uri for i in document.entities])):
        document = None
    return document
def run(self, document):
    if (not (document.uri in [i.uri for i in document.entities])):
        document = None
    return document