IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { if (mySignatures.isEmpty()) return IntentionPreviewInfo.EMPTY; // Show first even if lookup is displayed ReflectiveSignature signature = mySignatures.get(0); PsiElement element = PsiTreeUtil.findSameElementInCopy(getStartElement(), file); if (element == null) return IntentionPreviewInfo.EMPTY; applyFix(project, element, signature); return IntentionPreviewInfo.DIFF; }