$scope->getIdentifier(), $scopes)); return array_values(array_filter($scopes, fn(ScopeEntityInterface $scope): bool => in_array($scope->getIdentifier(), $identifiers, true))); } }