void (@NotNull List<? extends XValue> vars, String... names) { List<String> expectedNames = new ArrayList<>(Arrays.asList(names)); List<String> actualNames = new ArrayList<>(); for (XValue each : vars) { actualNames.add(computePresentation(each).myName); } expectedNames.removeAll(actualNames); assertTrue("Missing variables:" + StringUtil.join(expectedNames, ", ") + "\nAll Variables: " + StringUtil.join(actualNames, ", "), expectedNames.isEmpty() ); }