I think I would prefer to fix this warning by changing the signature of `CategoryFilterFactory.createFilter()` to take in a `List<Class<?>>` instead. These APIs haven't been externally released, so the change would be safe.