void (@Nullable Project project, File snapshot) { Notification notification = GROUP.createNotification(PerformanceTestingBundle.message("profiling.capture.snapshot.success", snapshot.getName()), NotificationType.INFORMATION); notification.addAction(NotificationAction.createSimpleExpiring( PerformanceTestingBundle.message("profiling.capture.snapshot.action.showInFolder", RevealFileAction.getFileManagerName()), () -> RevealFileAction.openFile(snapshot) )); SnapshotOpener opener = SnapshotOpener.findSnapshotOpener(snapshot); if (opener != null && project != null) { notification.addAction(NotificationAction.createSimpleExpiring( PerformanceTestingBundle.message("profiling.capture.snapshot.action.open"), () -> opener.open(snapshot, project) )); } notification.notify(project); }