public function indexClasses(ClassesInterface $locator)
    {
        foreach ($locator->getClasses(TranslatorTrait::class) as $class) {
            $strings = $this->fetchMessages($class, true);
            foreach ($strings as $string) {
                $this->registerMessage($class->getName(), $string);
            }
        }
    }