boolean (PsiNewExpression expression) { final PsiType type = expression.getType(); if (TypeUtils.typeEquals(CommonClassNames.JAVA_LANG_STRING_BUFFER, type) || TypeUtils.typeEquals(CommonClassNames.JAVA_LANG_STRING_BUILDER, type)) { return true; } if (TypeUtils.typeEquals(STRING_JOINER, type)) { final PsiExpressionList args = expression.getArgumentList(); if (args == null) return false; final PsiExpression[] expressions = args.getExpressions(); return expressions.length == 1 && ExpressionUtils.isLiteral(PsiUtil.skipParenthesizedExprDown(expressions[0]), ""); } return false; }