IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { @NlsSafe String name = myReferenceName; if (name == null) { return IntentionPreviewInfo.EMPTY; } Icon icon = ModuleType.get(myCurrentModule).getIcon(); HtmlBuilder builder = new HtmlBuilder() .append(name) .append(" ").append(HtmlChunk.htmlEntity("&rarr;")).append(" ") .append(HtmlChunk.icon("module", icon)) .nbsp() .append(myCurrentModule.getName()); return new IntentionPreviewInfo.Html(builder.wrapWith("p")); }