We should use childrenOfType<>() instead of Traversal<> API when possible. The Traversal<> API is meant to be internal and should not be used directly.