void (@NotNull MouseEvent e) { if (e.isPopupTrigger() || UIUtil.isCloseClick(e)) return; if (!isToolWindowDrag(e)) { myLastPoint.set(e.getLocationOnScreen()); myPressPoint.set(myLastPoint.get()); myDragTracker.set(LocationOnDragTracker.startDrag(e)); if (allowResize && ui.isResizeable()) { arm(c.getComponentAt(e.getPoint()) == c && ui.isResizeable(e.getPoint()) ? c : null); } } ui.window.fireActivated(ToolWindowEventSource.ToolWindowHeader); }