public function buildMethod($name)
{
$this->checkBuilderState();
// Debug method creation
Log::debug("Creating: \\PDepend\\Source\\AST\\ASTMethod({$name})");
// Create a new method instance
$method = new ASTMethod($name);
$method->setCache($this->cache);
return $method;
}