int px = -_mindMapWidget.getLayoutOffsetX() + root.getOffsetX()
+ context.mouseX - panelLeft;
int py = -_mindMapWidget.getLayoutOffsetY() + root.getOffsetY()
+ context.mouseY - panelTop;
LayoutPosition position = NodeLayout.findClosestInsertPosition(root,
px, py);
while (!(position.parent instanceof NodeWidget)
&& position.parent != null) {
LayoutTreeElement newParent = position.parent.getLayoutParent();
position.index = newParent.getLayoutChildren().indexOf(