find($this->tenantId); if (! $tenant instanceof Tenant) { throw new RuntimeException('Tenant not found.'); } $baseline = InventorySyncRun::query()->find($this->baselineRunId); if (! $baseline instanceof InventorySyncRun) { throw new RuntimeException('Baseline run not found.'); } $current = InventorySyncRun::query()->find($this->currentRunId); if (! $current instanceof InventorySyncRun) { throw new RuntimeException('Current run not found.'); } $generator->generate( tenant: $tenant, baseline: $baseline, current: $current, scopeKey: $this->scopeKey, ); } }