Endometriosis?

I have PCOS but recently I have been suspecting I have endometriosis due to symptoms I have been having, I realize it could be linked to my PCOS but is it possible to have both? How is endometriosis diagnosed?