public void testNoFilesFromAdditionalIndexedRootsWithCustomExclusionScope() throws ParsingException { FindModel findModel = FindManagerTestUtils.configureFindModel("Object.prototype.__defineGetter__"); PackageSet compile = PackageSetFactory.getInstance().compile("!src[subdir]:*..*"); findModel.setCustomScope(GlobalSearchScopesCore.filterScope(myProject, new NamedScope.UnnamedScope(compile))); findModel.setCustomScope(true); assertSize(0, findUsages(findModel)); }