/** * Checks if this node has a suppressed annotation for the given rule * instance. * * @param PHP_PMD_Rule $rule The context rule instance. * * @return boolean */ public function hasSuppressWarningsAnnotationFor(PHP_PMD_Rule $rule) { if (parent::hasSuppressWarningsAnnotationFor($rule)) { return true; } return $this->getParentType()->hasSuppressWarningsAnnotationFor($rule); }