Update getIntersections method signature on recursive calls as well.