private function createCondition(Config\Condition $config) : ConditionInterface
    {
        if (Util::getExecType($config->getExec()) === 'cli') {
            return new Cli(new Processor(), $config->getExec());
        }

        $class = $config->getExec();
        if (!class_exists($class)) {
            throw new RuntimeException('could not find condition class: ' . $class);
        }
        return new $class(...$config->getArgs());
    }