// Returns the root of the tree parsed from the list (always the first element). // Important: the first item and is required to have a depth value of -1. // The rest of the items should have depth >= 0. public static T ListToTree <T>(IList <T> list) where T : IEditorTreeViewItem <T> { return(TreeUtility.ListToTree(list)); }