boolean (@NotNull VirtualFile file) { PsiElement psiElement = getPsiElement(); if (psiElement == null) return false; PsiFile containingFile = psiElement.getContainingFile(); return file.equals(containingFile.getVirtualFile()); }