if (model instanceof MessageField) {
MessageField field = (MessageField) model;
Modifier modifier = field.getModifier();
if (OPTIONAL.equals(modifier)) {
CompoundElement display = DEFAULT_EQUAL_IN_BRACKETS;
int cursorPosition = display.indexOf(CLOSING_BRACKET);
if (messageFields.isString(field)) {
display = DEFAULT_EQUAL_STRING_IN_BRACKETS;
cursorPosition++;
}
createAndAccept(display, cursorPosition, context, acceptor);