private static boolean isExclusionRoot(ProjectFileIndex index, VirtualFile o) {
    if (!index.isExcluded(o)) return false;
    VirtualFile parent = o.getParent();
    return parent == null || !index.isExcluded(parent);
  }
private static boolean isExclusionRoot(ProjectFileIndex index, VirtualFile o)