public static function errorMessage(object $object, string $part, bool $forMethod): string
    {
        return
            sprintf(
                static::EXCEPTION_TEMPLATE,
                \get_class($object),
                $part,
                $forMethod ? static::METHOD : static::PROPERTY
            );
    }