/Engine/Source/Editor/UnrealEd/Public/EditorActorFolders.h
Iterate on all world's folders with the given root object and pass it to the provided operation.
void ForEachFolderWithRootObject ( [UWorld](API\Runtime\Engine\Engine\UWorld) & InWorld, const [FFolder::FRootObject](API\Runtime\Engine\FFolder\FRootObject) & InFolderRootObject, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< bool(const [FFolder](API\Runtime\Engine\FFolder) &)> Operation )