link.getSourceElement()

Return the source element of the link or null if there is none.