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