Hide quickfix via plugin

I would like to offer to hide a quick fix provided by PyCharm in certain situations via a plugin. How can I do that without using the internal APIs (IntentionMenuContributor#collectActions)?

IntentionActionFilter seems to do the job. It seems I was a bit blind…