@Override
  public @NotNull FileEditorState getState(@NotNull FileEditorStateLevel level) {
    DiffViewer viewer = getActiveViewer();
    if (!(viewer instanceof EditorDiffViewer)) return FileEditorState.INSTANCE;

    List<? extends Editor> editors = ((EditorDiffViewer)viewer).getEditors();

    TextEditorProvider textEditorProvider = TextEditorProvider.getInstance();
    return new DiffRequestProcessorEditorState(ContainerUtil.map(editors, (editor) ->
      textEditorProvider.getStateImpl(null, editor, level)));
  }
@Override
  public @NotNull FileEditorState getState(@NotNull FileEditorStateLevel level)