class IterableElementComparisonStrategy<T> extends StandardComparisonStrategy {

  private final Comparator<? super T> elementComparator;

  public IterableElementComparisonStrategy(Comparator<? super T> elementComparator) {
    this.elementComparator = elementComparator;
  }

  @SuppressWarnings("unchecked")
  @Override
  public boolean areEqual(Object actual, Object other) {<FILL_FUNCTION_BODY>}

  private boolean compareElementsOf(Iterable<T> actual, Iterable<T> other) {
    if (sizeOf(actual) != sizeOf(other)) return false;
    // compare their elements with elementComparator
    Iterator<T> iterator = other.iterator();
    for (T actualElement : actual) {
      T otherElement = iterator.next();
      if (elementComparator.compare(actualElement, otherElement) != 0) return false;
    }
    return true;
  }

  @Override
  public String toString() {
    return "IterableElementComparisonStrategy using " +
           CONFIGURATION_PROVIDER.representation().toStringOf(elementComparator);
  }

  @Override
  public String asText() {
    return format("when comparing elements using %s",
                  CONFIGURATION_PROVIDER.representation().toStringOf(elementComparator));
  }

  @Override
  public boolean isStandard() {
    return false;
  }
}

    if (actual == null && other == null) return true;
    if (actual == null || other == null) return false;
    // expecting actual and other to be iterable<T>
    return actual instanceof Iterable && other instanceof Iterable
           && compareElementsOf((Iterable<T>) actual, (Iterable<T>) other);
  
<methods>public boolean areEqual(java.lang.Object, java.lang.Object) ,public Iterable<?> duplicatesFrom(Iterable<?>) ,public static org.assertj.core.internal.StandardComparisonStrategy instance() ,public boolean isGreaterThan(java.lang.Object, java.lang.Object) ,public boolean isLessThan(java.lang.Object, java.lang.Object) ,public boolean isStandard() ,public boolean iterableContains(Iterable<?>, java.lang.Object) ,public void iterableRemoves(Iterable<?>, java.lang.Object) ,public void iterablesRemoveFirst(Iterable<?>, java.lang.Object) ,public boolean stringContains(java.lang.String, java.lang.String) ,public boolean stringEndsWith(java.lang.String, java.lang.String) ,public boolean stringStartsWith(java.lang.String, java.lang.String) <variables>private static final org.assertj.core.internal.StandardComparisonStrategy INSTANCE