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