def METHOD_NAME(self, obj: _objT, permission: Permission = None):
    assert permission != Permission.CREATE
    if permission is None:
        return any((obj == o for _,o in self.instances))
    return (permission, obj) in self.instances