protected void disposeEditor() {
    UIUtil.invokeAndWaitIfNeeded(() -> {
      Editor editor = getEditor();
      if (!editor.isDisposed()) {
        EditorFactory.getInstance().releaseEditor(editor);
      }
    });
  }
protected void disposeEditor()