boolean (@NotNull MouseEvent event, @NotNull Point dragToScreenPoint, @NotNull Point startScreenPoint) { if (myDragSource == null || !myDragSource.canBeDraggedOut()) { return false; } TabLabel label = myTabs.getInfoToLabel().get(myDragSource); if (label == null) { return false; } int dX = dragToScreenPoint.x - startScreenPoint.x; int dY = dragToScreenPoint.y - startScreenPoint.y; return myTabs.isDragOut(label, dX, dY); }