Ruby supports categories for warnings. By default they are
> Warning.categories
=> [:deprecated, :experimental, :performance, :strict_unused_block]
It would be nice to support these categories first hand, e.g. by mapping :deprectated to StructuredWarnings::DeprecationWarning. Those categories can also be enabled/disabled explicitly. Maybe this can be translated to a similar behavior by enabling/disabling the matching structured warnings.
https://docs.ruby-lang.org/en/master/Warning.html#method-c-5B-5D-3D