bestViableReferenceCandidate

This function handles some specifics of the Java language when choosing a reference target before invoking Language.bestViableReferenceCandidate.