public static void handleException(@Nullable Project project,
                                     @NonNls @Nullable String notificationDisplayId,
                                     @NotificationTitle @NotNull String title,
                                     @NotNull Exception e) {
    LOG.info(e);
    new HgCommandResultNotifier(project).notifyError(notificationDisplayId, null, title, e.getMessage());
  }
public static void handleException(@Nullable Project project,
                                     @NonNls @Nullable String notificationDisplayId,
                                     @NotificationTitle @NotNull String title,
                                     @NotNull Exception e)