private static boolean isAcceptedByIdea(X509Certificate @NotNull [] chain, String authType) {
    boolean result;

    try {
      CertificateManager.getInstance().getTrustManager().checkServerTrusted(chain, authType, ConfirmingTrustManager.CertificateConfirmationParameters.doNotAskConfirmation());
      result = true;
    }
    catch (CertificateException e) {
      LOG.debug(e);
      result = false;
    }

    return result;
  }
private static boolean isAcceptedByIdea(X509Certificate @NotNull [] chain, String authType)