What is the usual cause of hydrosalpinx?

What is the usual cause of hydrosalpinx?

Scarring secondary to PID, previous pelvic surgery, or endometriosis