IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiElement element = myElement.retrieve(); if (element == null) return IntentionPreviewInfo.EMPTY; return doPreview(project, PsiTreeUtil.findSameElementInCopy(element, file), editor); }