private GameObjectTreeViewItem CreateTreeViewItem(HierarchyProperty property, bool hasSearchString, int depth, bool shouldDisplay)
{
GameObjectTreeViewItem item = new GameObjectTreeViewItem(property.instanceID, depth, null, string.Empty) {
colorCode = property.colorCode,
objectPPTR = property.pptrValue,
shouldDisplay = shouldDisplay
};
if (!hasSearchString && property.hasChildren)
{
item.children = LazyTreeViewDataSource.CreateChildListForCollapsedParent();
}
return item;
}