private static Pair<Method, Class<?>> findMethod(PlaybackContext context, String methodName, Class[] types) {
    Set<Class<?>> classes = context.getCallClasses();
    for (Class<?> eachClass : classes) {
      try {
        Method method = eachClass.getMethod(methodName, types);
        return Pair.create(method, eachClass);
      }
      catch (NoSuchMethodException ignored) {
      }
    }

    return null;
  }
private static Pair<Method, Class<?>> findMethod(PlaybackContext context, String methodName, Class[] types)