private void setConfigPanel(final JPanel configPanelAnchor, final ScopeToolState state) {
    configPanelAnchor.removeAll();
    final JComponent additionalConfigPanel = state.getAdditionalConfigPanel(myDisposable, getProject());
    if (additionalConfigPanel != null) {
      additionalConfigPanel.setBorder(InspectionUiUtilKt.getBordersForOptions(additionalConfigPanel));
      configPanelAnchor.add(
        InspectionUiUtilKt.addScrollPaneIfNecessary(additionalConfigPanel),
        new GridBag().next().weightx(1.0).weighty(1.0).fillCell().anchor(GridBagConstraints.NORTHWEST)
      );
    }

    if (myOptionsLabel != null)
      myOptionsLabel.setText(
        AnalysisBundle.message("inspections.settings.options.title.specific.scope",
                               state.getScopeName().equals(CustomScopesProviderEx.getAllScope().getScopeId())
                                 ? LangBundle.message("scopes.table.everywhere.else")
                                 : state.getScopeName()));
  }
private void setConfigPanel(final JPanel configPanelAnchor, final ScopeToolState state)