void () { if (myJitProblemReported.compareAndSet(false, true)) { ApplicationEx app = ApplicationManagerEx.getApplicationEx(); String action = IdeBundle.message(app.isRestartCapable() ? "ide.restart.action" : "ide.shutdown.action"); String title = IdeBundle.message("notification.title.jit.compiler.disabled"); String content = IdeBundle.message("notification.content.jit.compiler.disabled"); new Notification("PerformanceWatcher", title, content, NotificationType.ERROR) .setListener(new NotificationListener.Adapter() { @Override protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) { if ("help".equals(e.getDescription())) { HelpManager.getInstance().invokeHelp("Tuning_product_"); } } }) .addAction(new NotificationAction(action) { @Override public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification notification) { notification.expire(); app.restart(true); } }) .notify(null); } }