void () { doTestRunnableFindUsagesWithExcludesConfiguration(configuration -> { final VirtualFile dirToExclude = findClass("A").getContainingFile().getVirtualFile().getParent(); configuration.addExcludeEntryDescription(new ExcludeEntryDescription(dirToExclude, false, false, myProject)); }, 3, "Foo.java", "excluded/A.java", "excluded/child/ShouldFindHere.java"); }