@Override
  protected @NotNull EditorEx createEditor() {
    EditorEx editor = super.createEditor();
    if (myLanguage != null && (myProject == null || !myProject.isDisposed())) {
      FileType fileType = myLanguage.getAssociatedFileType();
      editor.setHighlighter(HighlighterFactory.createHighlighter(myProject, fileType));
    }
    editor.setEmbeddedIntoDialogWrapper(true);
    return editor;
  }
@Override
  protected @NotNull EditorEx createEditor()