void (@NotNull MessageHolder holder) { if (formatType != null) { switch (formatType) { case CHOICE -> { MessageHolder choiceHolder = parseChoice(formatStyleSegment.toString()); holder.merge(choiceHolder, formatStyleSegmentStart); } case NUMBER, DATE, TIME -> { //skip, because it may depend on locals } default -> throw new IllegalArgumentException("formatType: " + formatType); } } }