public function addProcessor($processorId, array $attributes, $action = null, $group = null, $priority = 0)
    {
        $this->assertNotFrozen();

        if (null === $action) {
            $action = self::NO_ACTION;
        }
        if (!empty($group)) {
            $attributes[self::GROUP_ATTRIBUTE] = $group;
        }

        $this->initialData[self::PROCESSORS][$action][$priority][] = [$processorId, $attributes];
    }