Sanitize http headers in Java

How can I remove certain http headers from sentry events that contain sensitive information. I found the relevant setting in the ruby documentation at:

It’s also possible to remove HTTP header values which match a list:
config.sanitize_http_headers = [“Via”, “Referer”, “User-Agent”, “Server”, “From”]

Is there something similar in java sdk?