void () { Document document = EditorFactory.getInstance().createDocument(StringUtil.repeat(LOREM_IPSUM, 30000)); PlatformTestUtil.startPerformanceTest("Editor creation", 2000, () -> { Editor editor = EditorFactory.getInstance().createEditor(document); try { EditorTestUtil.setEditorVisibleSize(editor, 100, 100); LOG.debug(String.valueOf(editor.getContentComponent().getPreferredSize())); } finally { EditorFactory.getInstance().releaseEditor(editor); } }).assertTiming(); }