docs: private static Method[] getDeclaredMethods(Class<?> clazz) {
  
          Method[] result;
          Method[] declaredMethods = clazz.getDeclaredMethods();
          List<Method> defaultMethods = findConcreteMethodsOnInterfaces(clazz);
          if (defaultMethods != null) {
              result = new Method[declaredMethods.length + defaultMethods.size()];
              System.arraycopy(declaredMethods, 0, result, 0, declaredMethods.length);
              int index = declaredMethods.length;
              for (Method defaultMethod : defaultMethods) {
                  result[index] = defaultMethod;
                  index++;
              }
          } else {
              result = declaredMethods;
          }
          return result;
      }