docs: public static Method findMethod(final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> clazz, final MethodIdentifier methodIdentifier) {
          Class<?> c = clazz;
          List<Class<?>> interfaces = new ArrayList<>();
          while (c != null) {
              final ClassReflectionIndex index = deploymentReflectionIndex.getClassIndex(c);
              final Method method = index.getMethod(methodIdentifier);
              if(method != null) {
                  return method;
              }
              addInterfaces(c, interfaces);
              c = c.getSuperclass();
          }
          for(Class<?> i : interfaces) {
              final ClassReflectionIndex index = deploymentReflectionIndex.getClassIndex(i);
              final Method method = index.getMethod(methodIdentifier);
              if(method != null) {
                  return method;
              }
          }
          return null;
      }