} else {
background = _NON_REGULAR_EXPRESSION_BACKGROUND;
}
if (element instanceof ChoiceCriterionElement) {
ChoiceCriterionElement choiceElement = (ChoiceCriterionElement) element;
ColorizedComboBox comboBox = new ColorizedComboBox(
background);
comboBox.setEditable(choiceElement.isEditable());
for (Object choice : choiceElement.getChoices()) {
comboBox.addItem(choice);
}
component = comboBox;
} else {
component = new ColorizedTextField(background);