Consider using this feature: https://github.com/square/okhttp/pull/4286 as mentioned in https://medium.com/square-corner-blog/non-null-is-the-default-58ffc0bb9111