code: public function rotate($angle)
      {
          if ($this->isFastlyImageOptimizationEnabled() == false) {
              return parent::rotate($angle);
          }
  
          return $this->fastlyRotate($angle);
      }
docs: Wrapper for original rotate()
  
  @param int $angle
  @return \Magento\Catalog\Model\Product\Image