void (String... expectedNames) { final List<String> actualNames = ContainerUtil.map( ReadAction.compute(() -> ArtifactManager.getInstance(myProject).getAllArtifactsIncludingInvalid()), artifact -> artifact.getName()); assertUnorderedElementsAreEqual(actualNames, expectedNames); }