private void endDrag(boolean willDragOutStart) {
    if (willDragOutStart) {
      myDragOutSource = dragSource;
    }

    tabs.resetTabsCache();
    if (!willDragOutStart) {
     tabs.fireTabsMoved();
    }
    tabs.relayout$intellij_platform_ide(true, false);

    tabs.revalidate();

    if (dragSource != null) {
      TabInfo.DragDelegate delegate = dragSource.getDragDelegate();
      if (delegate != null) {
        delegate.dragFinishedOrCanceled();
      }
    }

    dragSource = null;
    dragRec = null;
  }
private void endDrag(boolean willDragOutStart)