void (String... expectedNames) { Module[] actualModules = ModuleManager.getInstance(myProject).getModules(); Assertions.assertThat(actualModules) .extracting("name") .containsExactlyInAnyOrder(expectedNames); }