if (f instanceof EditorFigNode) { EditorFigNode node = (EditorFigNode) f;
if (f instanceof ModuleFigNode) { ModuleFigNode node = (ModuleFigNode) f;
    public java.util.List findInputs() {        java.util.List result = new ArrayList();        Collection contents = getContents(null);        Iterator i = contents.iterator();        while (i.hasNext()) {            Fig f = (Fig) i.next();            if (f instanceof EditorFigNode) {                EditorFigNode node = (EditorFigNode) f;                if (node.getInputCount() == 0) {                    result.add(node);                }            }        }        return result;    }