public function getDefinitionByIdentifier($identifier)
    {
        foreach($this->groups as $group) {
            foreach($group->getDefinitions() as $definition) {
                if ($definition->getIdentifier() === $identifier) {
                    return $definition;
                }
            }
        }
        return null;
    }