throws ClassNotFoundException { Element inspect = (Element) root.getElementsByTagName("inspect") .item(0); if (inspect != null) { NodeList list = inspect.getChildNodes(); List clazzs = new LinkedList(); for (int i = 0; i < list.getLength(); i++) { Node node = list.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { clazzs.add(this.buildClass((Element) node)); } } Iterator i = clazzs.iterator(); List ms = new LinkedList(); while (i.hasNext()) { net.java.dev.jminimizer.beans.Class clazz = (net.java.dev.jminimizer.beans.Class) i .next(); ms.addAll(Arrays.asList(clazz.getMethods())); } methods = (Method[]) ms.toArray(new Method[0]); } else { methods = new Method[0]; }  }
throws ClassNotFoundException { Element inspect = (Element) root.getElementsByTagName("inspect") .item(0); if (inspect != null) { NodeList list = inspect.getChildNodes(); List clazzs = new LinkedList(); for (int i = 0; i < list.getLength(); i++) { Node node = list.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { clazzs.add(this.buildClass((Element) node)); } } Iterator i = clazzs.iterator(); List ms = new LinkedList(); while (i.hasNext()) { Class clazz = (Class) i.next(); ms.addAll(Arrays.asList(clazz.getMethods())); } methods = (Method[]) ms.toArray(new Method[0]); } else { methods = new Method[0]; } }
    private void buildMethodsToInspect(Element root)            throws ClassNotFoundException {        Element inspect = (Element) root.getElementsByTagName("inspect")                .item(0);        if (inspect != null) {            NodeList list = inspect.getChildNodes();            List clazzs = new LinkedList();            for (int i = 0; i < list.getLength(); i++) {                Node node = list.item(i);                if (node.getNodeType() == Node.ELEMENT_NODE) {                    clazzs.add(this.buildClass((Element) node));                }            }            Iterator i = clazzs.iterator();            List ms = new LinkedList();            while (i.hasNext()) {                net.java.dev.jminimizer.beans.Class clazz = (net.java.dev.jminimizer.beans.Class) i                        .next();                ms.addAll(Arrays.asList(clazz.getMethods()));            }            methods = (Method[]) ms.toArray(new Method[0]);        } else {            methods = new Method[0];        }    }