IntentionPreviewInfo ( @NotNull List<PsiNamedElement> sources, @NotNull PsiNamedElement target, @Nullable @Nls String explicitTargetName) { HtmlBuilder builder = new HtmlBuilder(); Icon targetIcon = getIcon(target); builder.appendWithSeparators( HtmlChunk.br(), ContainerUtil.map(sources, source -> getHtmlMoveFragment( getIcon(source), targetIcon, source.getName(), explicitTargetName == null ? target.getName() : explicitTargetName))); return new Html(builder.wrapWith("p")); }