public static boolean isExcludedOrUnderExcludedDirectory(@NotNull ContentEntry entry,
                                                           @NotNull Set<String> excludedUrls,
                                                           @NotNull VirtualFile file) {
    Set<VirtualFile> sourceRoots = ContainerUtil.newHashSet(entry.getSourceFolderFiles());
    VirtualFile parent = file;
    while (parent != null) {
      if (excludedUrls.contains(parent.getUrl())) return true;
      if (sourceRoots.contains(parent)) return false;
      parent = parent.getParent();
    }
    return false;
  }
public static boolean isExcludedOrUnderExcludedDirectory(@NotNull ContentEntry entry,
                                                           @NotNull Set<String> excludedUrls,
                                                           @NotNull VirtualFile file)