void () { if (getEditor() != null) { clearHighlighting(); remove(getEditor().getComponent()); EditorFactory.getInstance().releaseEditor(getEditor()); myEditorState = PreviewEditorState.EMPTY; setEditor(null); repaint(); } }