void (final MouseEvent e) { if (e.getID() == MouseEvent.MOUSE_PRESSED) { final ComponentItem componentItem = getComponentToInsert(); if (componentItem != null) { processComponentInsert(e.getPoint(), componentItem); } } else if (e.getID() == MouseEvent.MOUSE_MOVED) { final ComponentItem componentToInsert = getComponentToInsert(); if (componentToInsert != null) { ComponentItemDragObject dragObject = new ComponentItemDragObject(componentToInsert); myLastLocation = myGridInsertProcessor.processDragEvent(e.getPoint(), dragObject); if (myLastLocation.canDrop(dragObject)) { setCursor(FormEditingUtil.getCopyDropCursor()); } else { setCursor(FormEditingUtil.getMoveNoDropCursor()); } } } }