NotificationType (NotificationCategory notificationCategory) { return switch (notificationCategory) { case ERROR -> NotificationType.ERROR; case INFO, SIMPLE -> NotificationType.INFORMATION; case WARNING -> NotificationType.WARNING; }; }