Why API Platform Does Not Allow Serializer Groups on canXxx() Methods

When working with API Platform and Symfony Serializer, you may encounter the following error: