mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
[spellchecking] Use holder.getFile() to avoid extra PSI traversion
GitOrigin-RevId: 3d99f2d3b4d46f281df6b30a8a59af85f15ec106
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f2a14c254d
commit
5720dc8bb8
@@ -109,8 +109,8 @@ public final class SpellCheckingInspection extends LocalInspectionTool {
|
||||
}
|
||||
}
|
||||
|
||||
PsiFile containingFile = element.getContainingFile();
|
||||
if (containingFile != null && Boolean.TRUE.equals(containingFile.getUserData(InjectedLanguageManager.FRANKENSTEIN_INJECTION))) {
|
||||
PsiFile containingFile = holder.getFile();
|
||||
if (Boolean.TRUE.equals(containingFile.getUserData(InjectedLanguageManager.FRANKENSTEIN_INJECTION))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user