private static @NotNull JPanel createPanel(@NotNull ListTableModel<?> tableModel) {
      return ToolbarDecorator
        .createDecorator(new TableView<>(tableModel))
        .disableUpDownActions()
        .disableAddAction()
        .disableRemoveAction()
        .setToolbarPosition(ActionToolbarPosition.RIGHT)
        .addExtraAction(new DumbAwareAction(DiagnosticBundle.message("event.watcher.clear.button.title"), null,
                                            AllIcons.Actions.GC) {

          @Override
          public void actionPerformed(@NotNull AnActionEvent e) {
            Objects.requireNonNull(EventWatcher.getInstanceOrNull())
              .reset();
            setItems(tableModel, List.of());
          }
        }).createPanel();
    }
private static @NotNull JPanel createPanel(@NotNull ListTableModel<?> tableModel)