void () { Document document = EditorFactory.getInstance().createDocument(StringUtil.repeat(LOREM_IPSUM + '\n', 15000)); PlatformTestUtil.startPerformanceTest("Editor creation", 130, () -> { Editor editor = EditorFactory.getInstance().createEditor(document); try { LOG.debug(String.valueOf(editor.getContentComponent().getPreferredSize())); } finally { EditorFactory.getInstance().releaseEditor(editor); } }).assertTiming(); }