public static NotificationCategory convert(int type) {
    return switch (type) {
      case MessageCategory.ERROR -> ERROR;
      case MessageCategory.WARNING -> WARNING;
      case MessageCategory.INFORMATION, MessageCategory.STATISTICS, MessageCategory.NOTE -> INFO;
      case MessageCategory.SIMPLE -> SIMPLE;
      default -> SIMPLE;
    };
  }
public static NotificationCategory convert(int type)