com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null
```
com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null
invalidated at: see attachment
at com.intellij.psi.impl.source.tree.CompositePsiElement.getContainingFile(CompositePsiElement.java:91)
at at.wtioit.intellij.plugins.odoo.records.index.OdooRecordImpl.findVirtualFile(OdooRecordImpl.java:118)
at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$6(OdooRecordServiceImpl.java:154)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
...
at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:632)
at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$9(OdooRecordServiceImpl.java:156)
at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15)
at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.hasRecord(OdooRecordServiceImpl.java:153)
at at.wtioit.intellij.plugins.odoo.records.inspection.MissingRecordDefinitionXmlInspection$1.visitXmlToken(MissingRecordDefinitionXmlInspection.java:44)
at com.intellij.psi.impl.source.xml.XmlTokenImpl.accept(XmlTokenImpl.java:29)
...
at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:272)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428)
...
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
```
<-- If you remember any details about how the error can be reproduced please add them -->
Plugin Version: 0.6.11 IntelliJ Version: PyCharm 2023.1.2 IntelliJ Build: PC-231.9011.38
com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null
``` com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null invalidated at: see attachment at com.intellij.psi.impl.source.tree.CompositePsiElement.getContainingFile(CompositePsiElement.java:91) at at.wtioit.intellij.plugins.odoo.records.index.OdooRecordImpl.findVirtualFile(OdooRecordImpl.java:118) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$6(OdooRecordServiceImpl.java:154) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ... at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:632) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$9(OdooRecordServiceImpl.java:156) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.hasRecord(OdooRecordServiceImpl.java:153) at at.wtioit.intellij.plugins.odoo.records.inspection.MissingRecordDefinitionXmlInspection$1.visitXmlToken(MissingRecordDefinitionXmlInspection.java:44) at com.intellij.psi.impl.source.xml.XmlTokenImpl.accept(XmlTokenImpl.java:29) ... at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:272) at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428) ... at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ```