private static void notifyFailure(@NotNull Project project, @NotNull Throwable exception) {
    if (exception instanceof IOException) {
      NotificationGroupManager.getInstance().getNotificationGroup("Cached value profiling")
        .createNotification("Failed to capture snapshot: " + exception.getMessage(), NotificationType.ERROR)
        .notify(project);
      LOG.warn(exception);
    }
    else {
      LOG.error(exception);
    }
  }
private static void notifyFailure(@NotNull Project project, @NotNull Throwable exception)