Index material in 2.8 (Cryptomatte)
This is not exactly how to do it, but you can try to reduce alpha transparency of your glass object and adjust your Alpha Threshold value on View Layer settings. Just after that you can use cryptomatte object to pick the light.