void (@NotNull List<? extends XValue> vars, String... names) { List<String> actualNames = new ArrayList<>(); for (XValue each : vars) { actualNames.add(computePresentation(each).myName); } Collections.sort(actualNames); List<String> expectedNames = ContainerUtil.sorted(Arrays.asList(names)); UsefulTestCase.assertOrderedEquals(actualNames, expectedNames); }