code: private void updateAutoGeneratedQueriesPanel()
    {
      // make sure to make a copy since we are adding items to this set
      Set<String> corpora = new HashSet<>(ui.getQueryState().getSelectedCorpora().
        getValue());
  
      if (corpora.isEmpty())
      {
        corpora.addAll(ui.getQueryState().getAvailableCorpora().getItemIds());
      }
      autoGenQueries.setSelectedCorpusInBackground(corpora);
    }
docs: Updates or initializes the panel, which holds the automatic generated
  queries.