Polish magento-helper
Polish magento-helper

Inner-class refactoring to reduce duplicated code:

- Extract traversal of search folders (2 times)

- Conditional debug-format write to output (5 times)

Across the project there are most likely more of for methdo debugWrite(),
this change is for magento-helper only as the original report was for the
duplication in the folder traversal by Scrutinizer after last update.

p-makowski/n98-magerun2,p-makowski/n98-magerun2,p-makowski/n98-magerun2