void (@NotNull MessageHolder subHolder, int start) { List<MessageFormatError> errors = subHolder.getErrors(); for (MessageFormatError error : rearrangeErrors(errors, this.pattern, subHolder.pattern, start)) { addError(error.errorType, error.fromIndex, error.toIndex); } for (MessageFormatPart part : subHolder.parts) { part.start += start; MessageFormatElement nestedMessageFormatElement = part.messageFormatElement; if (nestedMessageFormatElement != null) { nestedMessageFormatElement.indexSegmentStart += start; nestedMessageFormatElement.formatTypeSegmentStart += start; nestedMessageFormatElement.formatStyleSegmentStart += start; } this.parts.add(part); } }