@Override
  public void setState(@NotNull FileEditorState state) {
    if (!(state instanceof DiffRequestProcessorEditorState processorState)) return;

    DiffViewer viewer = getActiveViewer();
    if (!(viewer instanceof EditorDiffViewer)) return;

    var editors = ((EditorDiffViewer)viewer).getEditors();
    var editorStates = processorState.embeddedEditorStates;

    TextEditorProvider textEditorProvider = TextEditorProvider.getInstance();
    for (int i = 0; i < Math.min(editorStates.size(), editors.size()); i++) {
      textEditorProvider.setStateImpl(myProject, editors.get(i), editorStates.get(i), true);
    }
  }
@Override
  public void setState(@NotNull FileEditorState state)