void (Map<String, ExternalProject> projectMap, String projectId, String... sourceSetModulesIds) { ExternalProject externalProject = projectMap.get(projectId); assertEquals(projectId, externalProject.getId()); List<String> actualSourceSetModulesIds = ContainerUtil.map( externalProject.getSourceSets().values(), sourceSet -> GradleProjectResolverUtil.getModuleId(externalProject, sourceSet)); assertSameElements(actualSourceSetModulesIds, sourceSetModulesIds); }