void (@NotNull @Nls String title, @Nullable Icon icon) { myTabbedPane.addTab(title, icon, new JLabel()); if (icon != null) { Component tab = myTabbedPane.getTabComponentAt(myTabbedPane.getTabCount() - 1); ((JLabel)tab).setHorizontalTextPosition(SwingConstants.LEFT); } }