public IReadOnlyList <ObjectType> GetPossibleTypes(INamedType abstractType) { if (abstractType is null) { throw new ArgumentNullException(nameof(abstractType)); } if (_types.TryGetPossibleTypes(abstractType.Name, out IReadOnlyList <ObjectType> types)) { return(types); } return(Array.Empty <ObjectType>()); }