public static bool RemoveById <T>(this IMutableContainer <T> container, string id) where T : INode { var item = container[id]; if (item == null) { return(false); } return(container.Remove(item)); }