MessageType (@NotNull Notification notification) { return switch (notification.getType()) { case WARNING -> MessageType.WARNING; case ERROR -> MessageType.ERROR; case INFORMATION, IDE_UPDATE -> MessageType.INFO; }; }