class AssigneeEditorWidget implements IsWidget,
                                             AssigneeEditorWidgetView.Presenter {

    private void addAssignee(Assignee assignee) {
        AssigneeListItem listItem = listItems.get();
        listItem.init(type, assignee, this::doSave, this::removeAssignee, this::onError);
        assigneeRows.add(listItem);
        view.add(listItem);
        if (max != -1 && assigneeRows.size() == max) {
            view.disableAddButton();
        }
    }

    @Inject public  AssigneeEditorWidget(AssigneeEditorWidgetView view,
                                ManagedInstance<AssigneeListItem> listItems,
                                TranslationService translationService,
                                Event<NotificationEvent> notification);

}