/**
  * Check if send email action is applicable to entity as activity
  *
  * @param object|null $entity
  * @return bool
  */
 public function isApplicable($entity = null)
 {
     return is_object($entity) && $this->email->supportActivityTarget(ClassUtils::getClass($entity)) && $this->activityManager->hasActivityAssociation(ClassUtils::getClass($entity), ClassUtils::getClass($this->email));
 }
 /**
  * Check if send email action is applicable to entity as activity
  *
  * @param object|null $entity
  * @return bool
  */
 public function isApplicable($entity = null)
 {
     return is_object($entity) && $this->email->supportActivityTarget(ClassUtils::getClass($entity));
 }