@Override
      protected @NotNull JComponent getAdditionalActionSettings(@NotNull Project project) {
        final JPanel panel = new JPanel(new GridBagLayout());
        final boolean hasOptionsPanel = OptionPaneRenderer.hasSettings(toolWrapper.getTool());
        final GridBag constraints = new GridBag()
          .setDefaultWeightX(1)
          .setDefaultWeightY(hasOptionsPanel ? 0 : 1)
          .setDefaultFill(GridBagConstraints.HORIZONTAL);

        panel.add(fileFilterPanel.getPanel(), constraints.nextLine());

        if (hasOptionsPanel) {
          myUpdatedSettingsToolWrapper = copyToolWithSettings(toolWrapper);
          final JComponent optionsPanel = OptionPaneRenderer.createOptionsPanel(myUpdatedSettingsToolWrapper.getTool(), myDisposable, project);
          LOGGER.assertTrue(optionsPanel != null);

          final var separator = new TitledSeparator(IdeBundle.message("goto.inspection.action.choose.inherit.settings.from"));
          separator.setBorder(JBUI.Borders.empty());
          panel.add(separator, constraints.nextLine().insetTop(20));

          optionsPanel.setBorder(InspectionUiUtilKt.getBordersForOptions(optionsPanel));
          final var scrollPane = InspectionUiUtilKt.addScrollPaneIfNecessary(optionsPanel);
          final var preferredSize = scrollPane.getPreferredSize();
          scrollPane.setPreferredSize(new Dimension(preferredSize.width, Math.min(preferredSize.height, 400)));
          panel.add(scrollPane, constraints.nextLine());
        }

        return panel;
      }
@Override
      protected @NotNull JComponent getAdditionalActionSettings(@NotNull Project project)