Rewrote intersectionContains-method based on reference element