if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
UpdateItem expression = stateObject.getExpression();
// Update item
stateObject.getStateFieldPath().accept(this);
if (shouldOutput(expression) || expression.hasSpaceAfterStateFieldPathExpression()) {
writer.append(SPACE);
}
// '='
if (shouldOutput(expression) || expression.hasEqualSign()) {
writer.append(EQUAL);
}
if (shouldOutput(expression) || expression.hasSpaceAfterEqualSign()) {
writer.append(SPACE);
}
// New value
if (stateObject.hasNewValue()) {