@Override
  public void setTitleAt(int index, @NlsContexts.TabTitle String title) {
    super.setTitleAt(index, title);
    Component tabComponent = getTabComponentAt(index);
    if (tabComponent instanceof JLabel label) {
      if (Boolean.TRUE.equals(label.getClientProperty(LABEL_FROM_TABBED_PANE))) {
        label.setText(title);
      }
    }
  }
@Override
  public void setTitleAt(int index, @NlsContexts.TabTitle String title)