protected function addRequiredIfNotNull(XType $type, &$rule)
    {
        if (isset($type->not_null) && $type->not_null) {
            $rule[] = $this->callExtension('not_null', [true]);
        }
    }