if (child instanceof RawTextNode) {
String rawText = ((RawTextNode) child).getRawText();
msgParts.add(new SoyMsgRawTextPart(rawText));
} else if (child instanceof MsgPlaceholderNode) {
String placeholderName = msgNode.getPlaceholderName((MsgPlaceholderNode) child);
msgParts.add(new SoyMsgPlaceholderPart(placeholderName));
} else if (child instanceof MsgPluralRemainderNode) {
msgParts.add(new SoyMsgPluralRemainderPart(
msgNode.getPluralVarName(child.getNearestAncestor(MsgPluralNode.class))));
} else if (child instanceof MsgPluralNode) {
msgParts.add(buildMsgPartForPlural((MsgPluralNode) child, msgNode));