if ($method->
isStatic() || !
$method->
isPublic()) { return false;
} $doc =
$method->
getDocComment() ?? '';
return !\
str_contains((string) $doc, 'reason:visibility-change'
);
} private function isBaseImplementation(InClassNode
$node): bool
{ $method =
$node->
getOriginalNode()->
getMethod('getDecorated'
);
if (!
$method) { return false;
} $firstStatement =
($method->
getStmts() ??
[])[0
];
if ($firstStatement instanceof Node\Stmt\Throw_
) { return true;
}