public virtual bool AcceptsElement(GraphElement element, ref string reasonWhyNotAccepted) { if (element.GetType() == typeof(Scope)) { reasonWhyNotAccepted = "Nested scope is not supported yet."; return(false); } return(true); }