New collecting algorithm on top of PHPParser