docs: private static Method findRenameMethodRecursively(Class<?> clazz) throws NoSuchMethodException
    {
      try {
        Method renameMethod = clazz.getDeclaredMethod("rename", Path.class, Path.class, Options.Rename[].class);
        renameMethod.setAccessible(true);
        return renameMethod;
      }
      catch (NoSuchMethodException ex) {
        Class<?> superClazz = clazz.getSuperclass();
        if (superClazz == null) {
          throw ex;
        } else {
          return findRenameMethodRecursively(superClazz);
        }
      }
    }