private static @NonNls @NotNull String convertToString(PsiExpression expression) {
        PsiType type = expression.getType();
        PsiExpression stripped = PsiUtil.skipParenthesizedExprDown(expression);
        if (stripped != null) {
          expression = stripped;
        }
        if (type instanceof PsiPrimitiveType && expression instanceof PsiLiteralExpression literalExpression) {
          Object value = literalExpression.getValue();
          if (value instanceof Character) {
            return '"' + StringUtil.escapeStringCharacters(value.toString()) + '"';
          }
          return "\"" + value + '"';
        }
        return "String.valueOf(" + expression.getText() + ")";
      }
private static @NonNls @NotNull String convertToString(PsiExpression expression)