Generic file/line guesser for third-party helpers