/Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementQueryBuilder.inl
This assumes that the types are unique, but for queries this should be true and otherwise both results would point to the first found index.
namespace TypedElementQueryBuilder { namespace Internal { template<typename Target, typename ArgsCurrent, typename... ArgsRemainder> constexpr uint32 TypedElementQueryBuilder::Internal::GetVarArgIndex() } }