def METHOD_NAME(self, scan: model.ScanResponse):
    if model.ScanStatusValues(scan.status.id) in (
            model.ScanStatusValues.FINISHED,
            model.ScanStatusValues.FAILED,
            model.ScanStatusValues.CANCELED,
    ):
        return True
    elif model.ScanStatusValues(scan.status.id) in (
        model.ScanStatusValues.NEW,
        model.ScanStatusValues.PRE_SCAN,
        model.ScanStatusValues.QUEUED,
        model.ScanStatusValues.SCANNING,
        model.ScanStatusValues.POST_SCAN,
        model.ScanStatusValues.SOURCE_PULLING_AND_DEPLOYMENT,
    ):
        return False
    else:
        raise NotImplementedError