void (MouseEvent e) { super.mouseMoved(e); if (!myPinToTopManager.isEnabled()) { return; } TreePath pathForLocation = getPathForLocation(e.getX(), e.getY()); if (pathForLocation == null) { myPinToTopManager.onNodeHovered(null, XDebuggerTree.this); return; } Object lastPathComponent = pathForLocation.getLastPathComponent(); myPinToTopManager .onNodeHovered(lastPathComponent instanceof XDebuggerTreeNode ? (XDebuggerTreeNode) lastPathComponent : null, XDebuggerTree.this); }