public function validateIdentifier(string $identifier, ?string $propertyPath = null): void
    {
        $constraints = [
            new Constraints\NotBlank(),
            new Constraints\Regex(
                [
                    'pattern' => '/^[A-Za-z0-9_]*[A-Za-z][A-Za-z0-9_]*$/',
                ]
            ),
        ];

        $this->validate($identifier, $constraints, $propertyPath);
    }