code: public void removeTypeParam(String key) {
  
          List<String> selectedTypes = m_searchObject.getTypes();
          if (selectedTypes.contains(key)) {
              m_handler.onClearTypes(Collections.singletonList(key));
              selectedTypes.remove(key);
              updateResultsTab(false);
              ValueChangeEvent.fire(this, m_searchObject);
          }
      }
docs: Removes the type from the search object.<p>
  
  @param key the type