void (@NotNull PsiLiteralExpression expression) { if (PsiLiteralUtil.isUnsafeLiteral(expression)) { invalidCode = true; stopWalking(); } else if (expression.getParent() instanceof PsiExpressionStatement) { invalidCode = true; stopWalking(); } }