I think it's terribly inefficient to iterate over all declared classes and create ReflectionClass for each of them. It could be more effective to grab result of ``get_declared_classes()`` before above ``foreach`` and later iterate only over newly declared classes.