Remove all use of idea::getSegmentsDEPRECATED(), and delete method