JavaI18nizeQuickFixDialog<UExpression> (final Project project, final Editor editor, final PsiFile psiFile) { JspFile jspFile = (JspFile)psiFile; TextRange selectedRange = JavaI18nUtil.getSelectedRange(editor, psiFile); if (selectedRange == null) return null; String text = editor.getDocument().getText(selectedRange); return new JavaI18nizeQuickFixDialog<>(project, jspFile, null, text, null, false, true) { @Override protected String getTemplateName() { return JavaTemplateUtil.TEMPLATE_I18NIZED_JSP_EXPRESSION; } }; }