How, exactly, do you do that, Wonder Woman?

How she does it is by using the logical choice for the antecedent of the pronoun rather than just blindly picking the one that happens to be closest to the pronoun.