boolean (PyStatement stmt) { if (stmt instanceof PyPassStatement || stmt instanceof PyRaiseStatement) { return true; } if (stmt instanceof PyReturnStatement && ((PyReturnStatement)stmt).getExpression() == null) { return true; } if (stmt instanceof PyExpressionStatement) { final PyExpression expression = ((PyExpressionStatement)stmt).getExpression(); if (expression instanceof PyNoneLiteralExpression && ((PyNoneLiteralExpression)expression).isEllipsis()) { return true; } } return false; }