private static @Nullable ScopeDescriptor getSelectedSearchScope(@NotNull SETab tab) {
    if (tab.isSingleContributor() && tab.getContributors().get(0) instanceof ScopeSupporting tabContributor) {
      return tabContributor.getScope();
    }
    return null;
  }
private static @Nullable ScopeDescriptor getSelectedSearchScope(@NotNull SETab tab)