IntentionPreviewInfo (@NotNull PsiNamedElement source, @NotNull PsiNamedElement target) { Icon sourceIcon = source.getIcon(0); if (sourceIcon instanceof DeferredIcon) { sourceIcon = ((DeferredIcon)sourceIcon).evaluate(); } Icon targetIcon = target.getIcon(0); if (targetIcon instanceof DeferredIcon) { targetIcon = ((DeferredIcon)targetIcon).evaluate(); } HtmlChunk moveFragment = getHtmlMoveFragment(sourceIcon, targetIcon, source.getName(), target.getName()); return new Html(moveFragment.wrapWith("p")); }