missingStatePolicy === 'hide' && $reference->state->isDegraded()) { return null; } return RelatedContextEntry::fromResolvedReference( key: $rule->relationKey, label: $this->labels->entryLabel($rule->relationKey), targetKind: $rule->targetType, priority: $rule->priority, actionLabel: $reference->linkTarget?->actionLabel ?? $this->labels->actionLabel($rule->relationKey), reference: $this->presenter->present($reference, ReferencePresentationVariant::Detail), ); } }