private static @NotNull NotificationSeverity getType(@NotNull Notification notification) {
    NotificationType type = notification.getType();
    return switch (type) {
      case ERROR -> NotificationSeverity.ERROR;
      case WARNING -> NotificationSeverity.WARNING;
      case INFORMATION, IDE_UPDATE -> NotificationSeverity.INFORMATION;
    };
  }
private static @NotNull NotificationSeverity getType(@NotNull Notification notification)