private static JPanel createRulesPanel(@NotNull final TableView<CombinedNestingRule> table) {
    final ToolbarDecorator toolbarDecorator =
      ToolbarDecorator.createDecorator(table,
                                       new ElementProducer<>() {
                                         @Override
                                         public boolean canCreateElement() {
                                           return true;
                                         }

                                         @Override
                                         public CombinedNestingRule createElement() {
                                           return new CombinedNestingRule("", "");
                                         }
                                       })
                      .disableUpDownActions();
    return UI.PanelFactory.panel(toolbarDecorator.createPanel())
                          .withLabel(IdeBundle.message("file.nesting.table.title")).moveLabelOnTop()
                          .resizeY(true)
                          .createPanel();
  }
private static JPanel createRulesPanel(@NotNull final TableView<CombinedNestingRule> table)