refactoring, optimization of checking for ignored files/folders by using HashSets