class VariableListItemWidgetViewImpl implements VariableListItemWidgetView,
                                                       ComboBoxView.ModelPresenter {

    @EventHandler("acceptButton")
    public void handleAcceptButton(final ClickEvent e) {

        final String tagAdded = tagNamesComboBox.getValue();

        if (!Strings.isNullOrEmpty(tagAdded) && !tagSet.contains(tagAdded)) {
            for (final HTMLAnchorElement closeAnchor : removeButtons.values()) {
                closeAnchor.onclick.onInvoke(new elemental2.dom.Event("DoNotUpdateModel"));
            }
            removeButtons.clear();

            tagSet.add(tagAdded);
            setCustomTags(setToList(tagSet));
            notifyModelChanged();

            if (!VariablesEditorFieldRenderer.getDefaultTagsSet().contains(tagAdded) && getPreviousCustomValue() != null && !tagAdded.equals(getPreviousCustomValue())) { // Is custom
                tagSet.remove(getPreviousCustomValue());
            }

            renderTagElementsBadges();
        }
    }

}