public function onUpdateRegistry(
        /** @noinspection PhpUnusedParameterInspection */ $name, Args $args
    )
    {
        $conditions = $args->get('conditions');
        foreach ($conditions as $key => $expected) {
            $actual = $this->registry->get($key, null, false);
            if (
                "/" !== substr($expected, 0, 1)
                    ? $expected !== $actual
                    : !preg_match($expected, $actual)
            ) {
                return;
            }
        }
        $changes = $args->get('changes');
        foreach ($changes as $key => $value) {
            $this->registry->set($key, $value);
        }
    }