void (@NotNull Presentation presentation, @NotNull ToolWindow toolWindow) { Supplier<@NlsContexts.TabTitle String> title = toolWindow.getStripeTitleProvider(); presentation.setText(title); presentation.setDescription(() -> IdeBundle.message("action.activate.tool.window", title.get())); Icon toolWindowIcon = toolWindow.getIcon(); presentation.setIconSupplier(new SynchronizedClearableLazy<>(() -> { Icon icon = toolWindowIcon; if (icon instanceof ScalableIcon && ExperimentalUI.isNewUI()) { icon = ((ScalableIcon)icon).scale(JBUIScale.scale(16f) / icon.getIconWidth()); return icon; } return icon == null ? null : new SizedIcon(icon, icon.getIconHeight(), icon.getIconHeight()); })); }