void () { myFixture.copyDirectoryToProject("", ""); Project project = getProject(); Collection<String> tags = XmlTagNamesIndex.getAllTagNames(project); assertTrue(tags.size() > 26); Collection<VirtualFile> files = XmlTagNamesIndex.getFilesByTagName("bean", project); assertEquals(1, files.size()); Module module = ModuleUtilCore.findModuleForFile(files.iterator().next(), project); assert module != null; final Collection<VirtualFile> files1 = FileBasedIndex.getInstance().getContainingFiles(XmlTagNamesIndex.NAME, "web-app", module.getModuleContentScope()); assertEquals(new ArrayList<>(files1).toString(), 2, files1.size()); List<String> names = new ArrayList<>(ContainerUtil.map(files1, virtualFile -> virtualFile.getName())); Collections.sort(names); assertEquals(Arrays.asList("web-app_2_5.xsd", "web-app_3_0.xsd"), names); }