inference: ensure inferring reachable code methods (#57088)
PR #51317 was a bit over-eager about inferring inferring unreachable
code methods. Filter out the Vararg case, since that can be handled by
simply removing it instead of discarding the whole call.
Fixes #56628
(cherry picked from commit eb9f24c8ceb964464939775e164366939755393c)