public static function illegal(
        object $collection,
        string $key
    ): CannotDeserialize {
        return new IllegalInputKey(withMessage(
            'Invalid collection deserialization input: Unexpected key `%s` for the `%s` class.',
            $key,
            classOfThe($collection)
        ));
    }