refactoring: extracted method doResolveCallAndRecordDebugInfo
Added collectAllCandidates flag to ResolutionContext
Collect all resolved candidate calls if required
Minor: removed "? extends"
Refactoring: made 'resolveFunctionCall' return OverloadResolutionResults
not OverloadResolutionResultsImpl