NotificationCategory (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; }; }