void (@NotNull Project project, String... expectedNames) { Module[] actual = ModuleManager.getInstance(project).getModules(); List<String> actualNames = new ArrayList<>(); for (Module m : actual) { actualNames.add(m.getName()); } assertContain(actualNames, expectedNames); }