void (@NotNull TokenSet set, IElementType @NotNull ... elements) { final Set<IElementType> expected = ContainerUtil.newHashSet(elements); for (IElementType t : Arrays.asList(T1, T2, T3, T4, T5, T6)) { if (expected.contains(t)) { assertTrue("missed: " + t, set.contains(t)); } else { assertFalse("unexpected: " + t, set.contains(t)); } } }