String (@NotNull PsiExpression operandToReplace, boolean seenString, CommentTracker commentTracker) { if (ExpressionUtils.isNullLiteral(operandToReplace)) { if (seenString) { return "null"; } else { return "String.valueOf((Object) null)"; } } if (seenString || ExpressionUtils.hasStringType(operandToReplace)) { return operandToReplace.getText(); } PsiExpression skipDown = PsiUtil.skipParenthesizedExprDown(operandToReplace); operandToReplace = skipDown == null ? operandToReplace : skipDown; return "String.valueOf(" + commentTracker.text(operandToReplace) + ')'; }