public function removeMethod($methodName)
{
$lowerName = strtolower($methodName);
foreach ($this->node->stmts as $key => $stmt) {
if ($stmt instanceof ClassMethod && $lowerName === strtolower($stmt->name)) {
unset($this->node->stmts[$key], $this->cachedMethods);
return true;
}
}
return false;
}