RequestConfig () { TaskSettings tasksSettings = TaskSettings.getInstance(); RequestConfig.Builder builder = RequestConfig.custom() .setConnectTimeout(3000) .setSocketTimeout(tasksSettings.CONNECTION_TIMEOUT); if (isUseProxy()) { IdeHttpClientHelpers.ApacheHttpClient4.setProxyForUrlIfEnabled(builder, getUrl()); } return builder.build(); }