void () { Notification notification = NOTIFICATION_GROUP.getValue().createNotification( IdeBundle.message("notification.content.jcef.gpucrash.title"), IdeBundle.message("notification.content.jcef.gpucrash.message"), NotificationType.ERROR); notification.addAction(new AnAction(IdeBundle.message("notification.content.jcef.gpucrash.action.restart")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { ApplicationManager.getApplication().restart(); } }); if (!Registry.is("ide.browser.jcef.gpu.disable")) { //noinspection DialogTitleCapitalization notification.addAction(new AnAction(IdeBundle.message("notification.content.jcef.gpucrash.action.disable")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { Registry.get("ide.browser.jcef.gpu.disable").setValue(true); ApplicationManager.getApplication().restart(); } }); } notification.notify(null); }