@Override
    public void scopesUpdated(@NotNull ScopesSnapshot scopes) {
      LOG.debug("Scope chooser combo updated, scheduling EDT update");
      SwingUtilities.invokeLater(() -> {
        ScopeChooserCombo.this.scopes = scopes;
        DefaultComboBoxModel<ScopeDescriptor> model = new DefaultComboBoxModel<>();
        updateModel(model, scopes.getScopeDescriptors());
        getComboBox().setModel(model);
        selectItem(selection);
        preselectedScope = null;
        var promise = initPromise;
        if (promise != null) {
          LOG.debug("Scope chooser combo initialized");
          promise.setResult(null);
          initPromise = null;
        }
      });
    }
@Override
    public void scopesUpdated(@NotNull ScopesSnapshot scopes)