private static boolean isSerializableClass(@NotNull Configuration configuration, Class<?> currentClass) {
    return currentClass != Object.class &&
           currentClass != AtomicReference.class &&
           !configuration.isAnnotatedAsTransient(currentClass);
  }
private static boolean isSerializableClass(@NotNull Configuration configuration, Class<?> currentClass)