private static void addTabWithoutBorders(@NotNull JBTabbedPane pane, @NotNull Runnable callback) {
    Insets insets = pane.getTabComponentInsets();
    pane.setTabComponentInsets(JBInsets.emptyInsets());
    callback.run();
    pane.setTabComponentInsets(insets);
  }
private static void addTabWithoutBorders(@NotNull JBTabbedPane pane, @NotNull Runnable callback)