Method (Class<?> clazz, String name, Class<?>... parameterType) { try { return clazz.getDeclaredMethod(name, parameterType); } catch (NoSuchMethodException var5) { Class<?> superclass = clazz.getSuperclass(); if (superclass != null) { return findMethodIncludingSuperclasses(superclass, name, parameterType); } } return null; }