void popupSelection(Object selection) {
    if (selection != null) {
      setEditorContent(selection);
      filter.consolidateFilter(); // equivalent to press enter
    }
  }
void popupSelection(Object selection)