static L allLiveMethods(O o) { Class c = _getClass(o); bool isInstance = c != o; new L methods; while (c != null) { for (Method m : c.getDeclaredMethods()) if (isInstance != isStaticMethod(m)) methods.add(m); c = c.getSuperclass(); } ret methods; }