@Nullable
  public synchronized List<ProducerContextCallbacks> setIsIntermediateResultExpectedNoCallbacks(
      boolean isIntermediateResultExpected) {
    if (isIntermediateResultExpected == mIsIntermediateResultExpected) {
      return null;
    }
    this.mIsIntermediateResultExpected = isIntermediateResultExpected;
    return new ArrayList<>(mCallbacks);
  }
Changes isIntermediateResultExpected property.

<p>This method does not call any callbacks. Instead, caller of this method is responsible for
iterating over returned list and calling appropriate method on each callback object. {@see
#callOnIntermediateResultChanged}

@return list of callbacks if the value actually changes, null otherwise
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/BaseProducerContext.java