ArrayList edgeClone = new ArrayList(getFigEdges());
List edgeClone = getFigEdges();
    public void dispose() {        ArrayList edgeClone = new ArrayList(getFigEdges());        int edgeCount = edgeClone.size();        for (int edgeIndex = 0; edgeIndex < edgeCount; ++edgeIndex) {            Fig f = (Fig) edgeClone.get(edgeIndex);            f.deleteFromModel();        }        Object own = getOwner();        if (own instanceof GraphNodeHooks) {            ((GraphNodeHooks) own).deleteFromModel();        } else {            removeFromDiagram();        }    }