boolean (@Nullable PyStatement stmt) { if (stmt instanceof PyExpressionStatement) { final PyExpression expr = ((PyExpressionStatement)stmt).getExpression(); if (expr instanceof PyStringLiteralExpression) { return true; } } return false; }