[Ide] Optimize FolderNodeBuilder.HasChildren()