@Override
  public LimitOffset<T> distinct() {
    return changeQuery(query -> ImmutableQuery.copyOf(query).withDistinct(true));
  }
Implementation of {@link SyncFetcher}. Also has some package-private methods
to allow delegation.
criteria/common/src/org/immutables/criteria/repository/sync/SyncFetcherDelegate.java