void (final X509Certificate certificate) { UIUtil.invokeLaterIfNeeded(() -> { if (myTreeBuilder != null && !myCertificates.contains(certificate)) { myCertificates.add(certificate); myTreeBuilder.addCertificate(certificate); addCertificatePanel(certificate); } }); }