code: public static Set<Method> getAllMethodsInHierarchy(Method method) {
          LinkedHashSet<Method> allMethods = new LinkedHashSet<>();
          val declaringClass = method.getDeclaringClass();
          return getAllMethodsInHierarchy(allMethods, declaringClass, method);
      }
docs: /*
  Gets an array of all methods in a class hierarchy walking up to parent classes