Notification (@Nullable Path file) { NotificationGroup group = NotificationGroupManager.getInstance().getNotificationGroup("Dump Threads Group"); if (file != null) { String url = FileUtil.getUrl(file.toFile()); return group.createNotification(IdeBundle.message("thread.dump.is.taken", url), NotificationType.INFORMATION) .setListener(RevealFileAction.FILE_SELECTING_LISTENER); } else { return group.createNotification(IdeBundle.message("failed.to.take.thread.dump"), NotificationType.INFORMATION); } }