protected function cleanAndAddHeader()
    {
        if (true === $this->clean || null !== $this->header) {
            foreach ($this->files as $translation) {
                $formatter = FormatterFactory::getInstance($translation);

                if ($this->clean) {
                    $formatter->clean($translation);
                }

                if ($this->header) {
                    $formatter->addHeader($translation, $this->header);
                }
            }
        }
    }