PyStringLiteralExpression () { final PsiElement parent = getParent(); if (parent instanceof PyAssignmentStatement || parent instanceof PyTypeDeclarationStatement) { final PsiElement nextSibling = PyPsiUtils.getNextNonCommentSibling(parent, true); if (nextSibling instanceof PyExpressionStatement) { final PyExpression expression = ((PyExpressionStatement)nextSibling).getExpression(); if (expression instanceof PyStringLiteralExpression) { return (PyStringLiteralExpression)expression; } } } return null; }