void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiExpression expression = PsiUtil.skipParenthesizedExprDown(tryCast(element, PsiExpression.class)); if (expression == null) return; Document document = expression.getContainingFile().getViewProvider().getDocument(); if (document == null) return; PsiLiteralExpression literalExpression = tryCast(expression, PsiLiteralExpression.class); if (literalExpression != null) { replaceWithTextBlock(new PsiExpression[]{literalExpression}, literalExpression); return; } PsiPolyadicExpression polyadicExpression = tryCast(expression, PsiPolyadicExpression.class); if (polyadicExpression == null || !ExpressionUtils.hasStringType(polyadicExpression)) return; replaceWithTextBlock(polyadicExpression.getOperands(), polyadicExpression); }