void (final MemberNodeBase<? extends M> node, final Set<? super M> allMethods) { if (node.isChecked()) { M method = node.getMember(); final M[] superMethods = method == myMethod ? null : findDeepestSuperMethods(method); if (superMethods == null || superMethods.length == 0) { allMethods.add(method); } else { allMethods.addAll(Arrays.asList(superMethods)); } final Enumeration children = node.children(); while (children.hasMoreElements()) { getSelectedMethodsInner((MemberNodeBase)children.nextElement(), allMethods); } } }