Can be combined to `configuration.getProxyConfiguration() != null && configuration.getProxyConfiguration().getType() != ProxyType.NOTHING` instead of the 8 lines above.