boolean (@NotNull MessageHolder holder) { if (currentPart == MessageFormatElementPart.ARGUMENT_INDEX) { formatTypeSegmentStart = holder.current + 1; currentPart = MessageFormatElementPart.FORMAT_TYPE; return true; } if (currentPart == MessageFormatElementPart.FORMAT_TYPE) { formatStyleSegmentStart = holder.current + 1; currentPart = MessageFormatElementPart.FORMAT_STYLE; return true; } return false; }