Two helpers are introduced:
- Some of the logic previously in TargetFinder::Visit*() methods is factored out into resolveDependentExprToDecls().
- Some of the logic in getMembersReferencedViaDependentName() is factored out into resolveTypeToRecordDecl().
D82739 will build on this and use these functions in new ways.
nit: add assert(T), or even use const Type& as the parameter type.