void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiLiteralExpression literalExpression = tryCast(element, PsiLiteralExpression.class); if (literalExpression == null || !literalExpression.isTextBlock()) return; String text = PsiLiteralUtil.getTextBlockText(literalExpression); if (text == null) return; String replacement = convertToConcatenation(text); PsiFile file = element.getContainingFile(); if (file == null) return; CodeStyleSettings tempSettings = CodeStyle.getSettings(file); tempSettings.getCommonSettings(JavaLanguage.INSTANCE).ALIGN_MULTILINE_BINARY_OPERATION = true; CodeStyleManager manager = CodeStyleManager.getInstance(literalExpression.getProject()); CodeStyle.doWithTemporarySettings(project, tempSettings, () -> { PsiElement result = new CommentTracker().replaceAndRestoreComments(literalExpression, replacement); manager.reformat(result); }); }