void () { Editor editor = EditorFactory.getInstance().createEditor(new DocumentImpl("")); Inlay<?> inlay = EditorTestUtil.addInlay(editor, 0); assertTrue(inlay.isValid()); EditorFactory.getInstance().releaseEditor(editor); assertFalse(inlay.isValid()); }