public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> transform(
            Transformation<ResourceType>... transformations) {
        isTransformationSet = true;
        if (transformations.length == 1) {
            transformation = transformations[0];
        } else {
            transformation = new MultiTransformation<ResourceType>(transformations);
        }

        return this;
    }
Transform resources with the given {@link Transformation}s. Replaces any existing transformation or
transformations.

@param transformations the transformations to apply in order.
@return This request builder.
core/src/main/java/com/bumptech/glide/GenericRequestBuilder.java