boolean (@NotNull TabLabel tabLabel, int deltaX, int deltaY) { if (lastTableLayout == null) { return super.isDragOut(tabLabel, deltaX, deltaY); } Rectangle area = new Rectangle(lastTableLayout.toFitRec.width, tabLabel.getBounds().height); for (int i = 0; i < lastTableLayout.myVisibleInfos.size(); i++) { area = area.union(myTabs.getInfoToLabel().get(lastTableLayout.myVisibleInfos.get(i)).getBounds()); } return Math.abs(deltaY) > area.height * getDragOutMultiplier(); }