boolean (VirtualFile file, PsiDirectory value) { if (myStateBean.isFlattenPackages()) { return Comparing.equal(value.getVirtualFile(), file.getParent()); } if (VfsUtilCore.isAncestor(value.getVirtualFile(), file, false)) { return true; } return false; }