public AutomationElementTreeNode FindChildNodeForAutomationElement(AutomationElement automationElement)
{
using (SynchronizationManager.Lock())
{
//if children has been polupated then find the element
if (this._childrenStatus == ChildrenElementsStatus.Populated)
{
return FindChildNodeForAutomationElementInternal(automationElement);
}
//if not then return null
return null;
}
}