/// <summary>Marks the specified element as generated by the <see cref="SnapshotGenerator"/>.</summary> internal static void SetCreatedBySnapshotGenerator(this Element elem) { elem?.AddAnnotation(new CreatedBySnapshotGeneratorAnnotation()); }