private function registerPostProcessor(string $type, string $class) : void
    {
        if (\class_exists($class)) {
            $interfaces = \class_implements($class);
            if (\in_array(PostProcessor::class, $interfaces, true)) {
                $this->postProcessorsMap[$type] = $class;
            } else {
                throw new ConfigException("Class {$class} don't implement interface " . PostProcessor::class);
            }
        } else {
            throw new ConfigException("Class {$class} not found");
        }
    }