private static function isAfterMethod(ReflectionMethod $method) { return preg_match('/@after\\b/', $method->getDocComment()); }