boolean (@NotNull TabInfo info) { TabLabel label = myTabs.getInfoToLabel().get(info); Rectangle bounds = label.getBounds(); int deadzone = JBUI.scale(DEADZONE_FOR_DECLARE_TAB_HIDDEN); return bounds.x < -deadzone || bounds.width < label.getPreferredSize().width - deadzone; }