Set<String> (@Nullable Project project, @NotNull ContentEntry entry) { Set<String> excludedUrls = new HashSet<>(entry.getExcludeFolderUrls()); if (project != null) { for (DirectoryIndexExcludePolicy policy : DirectoryIndexExcludePolicy.getExtensions(project)) { ContainerUtil.addAll(excludedUrls, policy.getExcludeUrlsForProject()); } } return excludedUrls; }