protected function getTaxGroupFromEvent(ResourceEventInterface $event)
    {
        $resource = $event->getResource();

        if (!$resource instanceof TaxGroupInterface) {
            throw new InvalidArgumentException('Expected instance of ' . TaxGroupInterface::class);
        }

        return $resource;
    }