IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { int offset = editor.getCaretModel().getOffset(); final String uri = findUri(file, offset); if (uri == null) { return IntentionPreviewInfo.EMPTY; } String pathToConfigurable = ConfigurableExtensionPointUtil.getConfigurablePath(ExternalResourceConfigurable.class, project); String text = new HtmlBuilder().wrapWithHtmlBody() .child(HtmlChunk.body().child(HtmlChunk.template(XmlBundle.message("ignore.ext.resource.preview", "$uri$", "$path$"), Map.entry("uri", HtmlChunk.link("uri", uri)), Map.entry("path", HtmlChunk.text(pathToConfigurable).italic())))).toString(); return new IntentionPreviewInfo.Html(text); }