void (VirtualFile file, String... allNames) { FileEditor[] editors = manager.getEditors(file); assertEquals(allNames.length, editors.length); List<String> expectedNames = Arrays.asList(allNames); List<String> actualNames = ContainerUtil.map(editors, FileEditor::getName); if (!actualNames.containsAll(expectedNames)) { fail("Expected file editors names:\n"+expectedNames+ "\nActual names:\n"+actualNames); } }