private static void configureSslConnection(@NotNull String url, @NotNull HttpsURLConnection connection) {
    if (!LoadingState.COMPONENTS_REGISTERED.isOccurred()) {
      LOG.info("Application is not initialized yet; Using default SSL configuration to connect to " + url);
      return;
    }

    try {
      SSLSocketFactory factory = IdeUiService.getInstance().getSslSocketFactory();
      if (factory == null) {
        LOG.info("SSLSocketFactory is not defined by the IDE Certificate Manager; Using default SSL configuration to connect to " + url);
      }
      else {
        connection.setSSLSocketFactory(factory);
      }
    }
    catch (Throwable e) {
      LOG.info("Problems configuring SSL connection to " + url, e);
    }
  }
private static void configureSslConnection(@NotNull String url, @NotNull HttpsURLConnection connection)