boolean (final VirtualFile vFile) { final PsiFile classFile = myClassToBind.getContainingFile(); final VirtualFile classVFile = classFile == null ? null : classFile.getVirtualFile(); if (classVFile != null && classVFile.equals(vFile)) { return true; } for (PsiFile psiFile : myFormFiles) { final VirtualFile virtualFile = psiFile.getVirtualFile(); if (virtualFile != null && virtualFile.equals(vFile)) { return true; } } return false; }