IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiJavaCodeReferenceElement element = getRefElement(); if (element == null) return IntentionPreviewInfo.EMPTY; element = PsiTreeUtil.findSameElementInCopy(element, file); PsiClass[] targets = getPossibleTargets(element); if (targets.length == 0) return IntentionPreviewInfo.EMPTY; doInvoke(targets[0], getSuperClassName(element)); return IntentionPreviewInfo.DIFF; }