menuToShow = world.getSelectionMenu(world.getSelection());
} else if (mousePressedInteractableObj != null &&
mousePressedInteractableObj == getInteractableFromEvent(event)) {
if (mousePressedInteractableObj instanceof WorldImpl) {
// determine the position to add the pasted object
WorldImpl world = (WorldImpl)mousePressedInteractableObj;
Point2D newPosition = getRelativePosition(world, mousePressedCanvasPosition);
menuToShow = world.getContextMenu(newPosition.getX(), newPosition.getY());
} else {
menuToShow = mousePressedInteractableObj.getContextMenu();
}
}