private boolean contains(VirtualFile file, PsiDirectory value) {
    CoverageViewManager.StateBean stateBean = CoverageViewManager.getInstance(myProject).getStateBean();
    if (stateBean.isFlattenPackages()) {
      return Comparing.equal(value.getVirtualFile(), file.getParent());
    }

    if (VfsUtilCore.isAncestor(value.getVirtualFile(), file, false)) {
      return true;
    }

    return false;
  }
private boolean contains(VirtualFile file, PsiDirectory value)