docs: private static void failFastOnIncompatibleSubclass(Class<?> clazz) {
          while (clazz != DynamoDBMapper.class) {
              Class<?>[] classOverride = new Class<?>[] {
                      Class.class,
                      Map.class
              };
              Class<?>[] nameOverride = new Class<?>[] {
                      String.class,
                      String.class,
                      Map.class
              };
  
              for (Method method : clazz.getDeclaredMethods()) {
                  if (method.getName().equals("transformAttributes")) {
                      Class<?>[] params = method.getParameterTypes();
                      if (Arrays.equals(params, classOverride)
                              || Arrays.equals(params, nameOverride)) {
  
                          throw new IllegalStateException(
                                  "The deprecated transformAttributes method is "
                                  + "no longer supported as of 1.9.0. Use an "
                                  + "AttributeTransformer to inject custom "
                                  + "attribute transformation logic.");
                      }
                  }
              }
  
              clazz = clazz.getSuperclass();
          }
      }