CertificateWarningDialog (@NotNull X509Certificate certificate, @Nullable @NlsContexts.DialogMessage String details) { return new CertificateWarningDialog(certificate, IdeBundle.message("dialog.title.untrusted.server.s.certificate"), details == null ? IdeBundle.message("text.server.s.certificate.trusted") : IdeBundle.message("text.server.s.certificate.trusted.details", details)); }