// finds static and non-static methods. static L findMethodsNamed(O obj, String method) { if (obj == null) ret null; ret findMethodsNamed(_getClass(obj), method); } static L findMethodsNamed(Class c, String method) { new L l; while (c != null) { for (Method m : c.getDeclaredMethods()) if (m.getName().equals(method)) { m.setAccessible(true); l.add(m); } c = c.getSuperclass(); } ret l; }