void (String text, Splitter splitter, int expectedTime) { PlatformTestUtil.startPerformanceTest("long word for spelling", expectedTime, () -> { try { splitter.split(text, TextRange.allOf(text), (textRange) -> {}); } catch (ProcessCanceledException pce) { System.err.println("pce is thrown"); } }).attempts(1).assertTiming(); }