IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { PsiFile file = previewDescriptor.getPsiElement().getContainingFile(); Icon fileIcon = JetgroovyIcons.Groovy.GroovyFile; Icon dirIcon = AllIcons.Nodes.Folder; HtmlBuilder builder = new HtmlBuilder() .append(HtmlChunk.icon("file", fileIcon)) .nbsp() .append(file.getName()) .append(" ").append(HtmlChunk.htmlEntity("&rarr;")).append(" ") .append(HtmlChunk.icon("dir", dirIcon)) .nbsp() .append(myPackageName.replace(".", FileSystems.getDefault().getSeparator())); //NON-NLS return new IntentionPreviewInfo.Html(builder.wrapWith("p")); }