void () { final IElementType[] elementTypes = IElementType.enumerate(IElementType.TRUE); final TokenSet set = TokenSet.create(); final int shift = new Random().nextInt(500000); PlatformTestUtil.startPerformanceTest("TokenSet.contains()", 25, () -> { for (int i = 0; i < 1000000; i++) { final IElementType next = elementTypes[(i + shift) % elementTypes.length]; assertFalse(set.contains(next)); } }).useLegacyScaling().assertTiming(); }