private static function isNonExpressionStmt(Node $node)
    {
        return $node instanceof Stmt &&
            !$node instanceof Expression &&
            !$node instanceof Return_ &&
            !$node instanceof Namespace_;
    }
private static function isNonExpressionStmt(Node $node)
    {
        return $node instanceof Stmt &&
            !$node instanceof Expression &&
            !$node instanceof Return_ &&
            !$node instanceof Namespace_;
    }
private static function isNonExpressionStmt ( Node $ node ) { return $ node instanceof Stmt && ! $ node instanceof Expression && ! $ node instanceof Return_ && ! $ node instanceof Namespace_ ; }
Check whether a given node is a non-expression statement.

As of PHP Parser 4.x, Expressions are now instances of Stmt as well, so
we'll exclude them here.

@param Node $node

@return bool
Check whether a given node is a non - expression statement .