void (Graphics g) { TabLabel label = myTabs.getInfoToLabel().get(myInfo); boolean isHovered = label != null && label.isHovered(); boolean isSelected = myTabs.getSelectedInfo() == myInfo; if (ExperimentalUI.isNewUI() && myTabs instanceof JBEditorTabs && !isSelected && !isHovered && !myMarkModified && !myInfo.isPinned()) { return; } super.paint(g); }