@Override
  public void setScopes(NamedScope @NotNull [] scopes) {
    super.setScopes(scopes);
    final List<String> order = myNamedScopeManager.myOrderState.myOrder;
    order.clear();
    for (NamedScope scope : scopes) {
      order.add(scope.getScopeId());
    }
  }
@Override
  public void setScopes(NamedScope @NotNull [] scopes)