void () { DirectoryIndexExcludePolicy policy = new DirectoryIndexExcludePolicy() { @Override public String @NotNull [] getExcludeUrlsForProject() { return ArrayUtil.toStringArray(excludedUrls); } @Override public Function<Sdk, List<VirtualFile>> getExcludeSdkRootsStrategy() { return sdk -> excludedFromSdk; } }; setUp(Collections.emptyList(), Collections.emptyList(), Collections.singletonList(policy)); }