public boolean isDescendantDiagram(EditorFigNode node) { EditorFigNode parent = _parent;
public boolean isDescendantDiagram(ModuleFigNode node) { ModuleFigNode parent = _parent;
    public boolean isDescendantDiagram(EditorFigNode node) {        EditorFigNode parent = _parent;        while (parent != null) {            if (parent == node) {                return true;            }            Layer layer = parent.getLayer();            if (layer != null && layer instanceof EditorLayer) {                parent = ((EditorLayer) layer).getParent();            } else {                return false;            }        }        return false;    }