public void consolidateFilter() {
      if (isEnabled()) {
        // next call can imply a call to editorFilterUpdated if
        // there are changes on the filter
        editor.consolidateFilter();
        if (reportOnConsolidation) {
          reportOnConsolidation = false;
          reportFilterUpdatedToObservers();
        }

        if (toBeConsolidated) {
          toBeConsolidated = false;

          boolean warning = filtersHandler.consolidateFilterChanges(
            modelIndex);
          editor.setWarning(warning);

          // only add valid content creating filters that do not
          // filter all the content out
          if (editor.isValidContent() && !warning) {
            popup.addHistory(editor.getContent());
          }
        }
      }
    }
public void consolidateFilter()