@Override
  public @NotNull FileEditorState getState(@NotNull FileEditorStateLevel level) {
    TextEditor textEditor = getTextEditor();
    return textEditor == null ? new TextEditorState() : textEditor.getState(level);
  }
@Override
  public @NotNull FileEditorState getState(@NotNull FileEditorStateLevel level)