code: @Nullable
    public synchronized List<ProducerContextCallbacks> setIsIntermediateResultExpectedNoCallbacks(
        boolean isIntermediateResultExpected) {
      if (isIntermediateResultExpected == mIsIntermediateResultExpected) {
        return null;
      }
      mIsIntermediateResultExpected = isIntermediateResultExpected;
      return new ArrayList<>(mCallbacks);
    }
docs: 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