boolean (@Nullable PsiElement element) { if (element != null) { final PyStringLiteralExpression stringLiteral = PsiTreeUtil .getParentOfType(element, PyStringLiteralExpression.class); return stringLiteral != null || element instanceof PsiComment; } return false; }