@Override
  public void paint(Graphics g) {
    TabLabel label = tabs.getTabLabel(info);
    boolean isHovered = label != null && label.isHovered();
    boolean isSelected = tabs.getSelectedInfo() == info;
    if (ExperimentalUI.isNewUI()
        && tabs instanceof JBEditorTabs
        && !isSelected
        && !isHovered
        && !myMarkModified
        && !info.isPinned()) {
      return;
    }
    super.paint(g);
  }
@Override
  public void paint(Graphics g)