mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
cleanup: rename file to psiFile to distinguish from VirtualFile
GitOrigin-RevId: e718eac8ba2d2177787ae941d8525b3c154d10fc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3edf733f03
commit
6d1f55f160
@@ -420,7 +420,7 @@ public final class JavaLangInvokeHandleSignatureInspection extends AbstractBaseJ
|
||||
|
||||
@Override
|
||||
public void invoke(@NotNull Project project,
|
||||
@NotNull PsiFile file,
|
||||
@NotNull PsiFile psiFile,
|
||||
@Nullable Editor editor,
|
||||
@NotNull PsiElement startElement,
|
||||
@NotNull PsiElement endElement) {
|
||||
@@ -445,11 +445,11 @@ public final class JavaLangInvokeHandleSignatureInspection extends AbstractBaseJ
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) {
|
||||
public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile psiFile) {
|
||||
if (mySignatures.isEmpty()) return IntentionPreviewInfo.EMPTY;
|
||||
// Show first even if lookup is displayed
|
||||
ReflectiveSignature signature = mySignatures.get(0);
|
||||
PsiElement element = PsiTreeUtil.findSameElementInCopy(getStartElement(), file);
|
||||
PsiElement element = PsiTreeUtil.findSameElementInCopy(getStartElement(), psiFile);
|
||||
if (element == null) return IntentionPreviewInfo.EMPTY;
|
||||
applyFix(project, element, signature);
|
||||
return IntentionPreviewInfo.DIFF;
|
||||
|
||||
Reference in New Issue
Block a user