@ApiStatus.Internal
  public void changeScope(@NotNull BiFunction<? super ScopeDescriptor, ? super List<ScopeDescriptor>, @Nullable ScopeDescriptor> processor) {
    if (mySelectedTab.everywhereAction == null) return;
    if (mySelectedTab.everywhereAction instanceof ScopeChooserAction sca) {
      List<ScopeDescriptor> scopes = new ArrayList<>();
      sca.processScopes(scopes::add);
      ScopeDescriptor currentScope = sca.getSelectedScope();
      ScopeDescriptor newScope = processor.apply(currentScope, scopes);
      if (newScope != null && newScope != currentScope) {
        sca.onScopeSelected(newScope);
        myToolbar.updateActionsImmediately();
      }
    }
  }
@ApiStatus.Internal
  public void changeScope(@NotNull BiFunction<? super ScopeDescriptor, ? super List<ScopeDescriptor>, @Nullable ScopeDescriptor> processor)