@Nullable
  private JComponent createSearchScopePanel() {
    if (isInFileOnly()) return null;
    JPanel optionsPanel = new JPanel(new BorderLayout());
    String scope = FindSettings.getInstance().getDefaultScopeName();
    // The default name means we have to fall back to whatever the default scope is set in FindUsagesOptions.
    // (The default name itself doesn't correspond to any real scope name anyway.)
    if (Objects.equals(scope, FindSettingsImpl.getDefaultSearchScope())) {
      scope = FindUsagesOptions.getDefaultScope(myProject).getDisplayName();
    }
    myScopeCombo = new ScopeChooserCombo(myProject, mySearchInLibrariesAvailable, true, scope);
    Disposer.register(myDisposable, myScopeCombo);
    optionsPanel.add(myScopeCombo, BorderLayout.CENTER);

    Title scopeTitle = new Title(FindBundle.message("find.scope.label"), JBUI.Borders.emptyBottom(4), myScopeCombo.getComboBox());
    optionsPanel.add(scopeTitle, BorderLayout.NORTH);
    return optionsPanel;
  }
@Nullable
  private JComponent createSearchScopePanel()