void (@NotNull final AnActionEvent e) { ApplicationManager.getApplication().invokeLater(() -> { URL location = null; try { location = new URL(SELF_SIGNED_SERVER_URL); } catch (MalformedURLException ignored) { } // EDT will not be released for dialog until message dialog is shown. Meanwhile downloading of image by // ImageFetcher thread, started by MediaTracker, won't stop until certificate is accepted by user. Messages.showMessageDialog(e.getProject(), TaskBundle.message("dialog.message.this.dialog.may.not.be.shown"), TaskBundle.message("dialog.title.deadlocking.dialog"), new ImageIcon(location)); }); }