The section "Relativistic deflections by foreground stars" walks through the math which enables this, which I found really interesting.