void (@NotNull PsiLiteralExpression expression) { if (PsiUtil.skipParenthesizedExprUp(expression.getParent()) instanceof PsiPolyadicExpression) return; boolean quickFixOnly = isOnTheFly && InspectionProjectProfileManager.isInformationLevel(getShortName(), expression); if (!mySuggestLiteralReplacement && !quickFixOnly) return; PsiLiteralExpression literal = getLiteralExpression(expression); if (literal == null) return; String text = literal.getText(); int newLineIdx = getNewLineIndex(text, 0); if (newLineIdx != -1 && getNewLineIndex(text, newLineIdx + 1) != -1) { holder.registerProblem(expression, quickFixOnly ? null : new TextRange(newLineIdx, newLineIdx + 2), JavaBundle.message("inspection.text.block.migration.string.message"), new ReplaceWithTextBlockFix()); } else if (isOnTheFly && getQuoteIndex(text) != -1) { holder.registerProblem(expression, JavaBundle.message("inspection.text.block.migration.string.message"), ProblemHighlightType.INFORMATION, new ReplaceWithTextBlockFix()); } }