internal static void SetContainingScope(this GraphElement element, Scope scope) { if (element == null) { throw new ArgumentNullException(nameof(element)); } element.SetProperty(containingScopePropertyKey, scope); }