Is that method extensible to discrete dividends?
I googled and found slides there Leif extends the method to discrete dividends: https://www.math.cmu.edu/CCF/CCFevents/shreve/abstracts/L.An...
( I'm a fixed income quant, so I didn't look for it until now.) For a more advance model than Black-Scholes, e.g. local vol I don't expect it can be extended, and one would then need use some PDE based method.
(I wish I could talk more, but yeah, legal obligations)
After a bit more googling, I found these more recent slides by Jesper Andersen, where he believes that the Leif et al method could be extended for local vol (see page 25): https://www.cqfinstitute.org/sites/default/files/4%20-%20Jes...