void () { NotificationGroup group = NotificationGroup.balloonGroup("URL does not respond notification", IdeBundle.message("browser.notification.timeout.group")); String url = Objects.requireNonNull(mySettings.getUrl()); String openUrlDescription = "open_url"; String content = IdeBundle.message("browser.notification.timeout.text", openUrlDescription, url); group.createNotification(IdeBundle.message("browser.notification.timeout.title"), content, NotificationType.ERROR) .setListener((notification, event) -> { if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED && event.getDescription().equals(openUrlDescription)) { BrowserUtil.open(url); notification.expire(); } }) .notify(myRunConfiguration.getProject()); }