public void SelectElements(IEnumerable <VisualElement> elements)
        {
            m_TreeView.ClearSelection();

            if (elements == null)
            {
                return;
            }

            foreach (var element in elements)
            {
                var item = FindElement(m_TreeRootItems, element);
                if (item == null)
                {
                    continue;
                }

#if UNITY_2020_1_OR_NEWER
                m_TreeView.AddToSelection(item.id);
                m_TreeView.ScrollToItem(item.id);
#else
                m_TreeView.SelectItem(item.id);
#endif
            }
        }