private function declOnlyThrows(Decl $node) { return isset($node->children['stmts']) && $node->children['stmts']->kind === \ast\AST_STMT_LIST && count($node->children['stmts']->children) === 1 && $node->children['stmts']->children[0]->kind === \ast\AST_THROW; }