IndexingTestEntity (List<VirtualFileUrl> roots, List<VirtualFileUrl> excludedRoots, Project project) { IndexingTestEntity entity = IndexingTestEntity.create(roots, excludedRoots, ENTITY_SOURCE); editWorkspaceModel(project, builder -> builder.addEntity(entity)); return entity; }