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