IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); UInjectionHost literal = I18nizeAction.getEnclosingStringLiteral(element); if (literal == null) { return IntentionPreviewInfo.EMPTY; } String string = getStringToExtract(literal); return new IntentionPreviewInfo.Html(new HtmlBuilder().append(JavaI18nBundle.message("i18n.quickfix.preview.description")) .br().append(HtmlChunk.text(string).code()).toFragment()); }