private static void readContextData(
      @NotNull DiffContext context,
      @NotNull FileEditor editor,
      @NotNull TransferableFileEditorState state) {
    Map<String, Map<String, String>> map = context.getUserData(TRANSFERABLE_FILE_EDITOR_STATE);
    Map<String, String> options = map != null ? map.get(state.getEditorId()) : null;
    if (options == null) return;

    state.setTransferableOptions(options);
    editor.setState(state);
  }
 private void updateEditor(
     @NotNull FileEditor editor, @NotNull String id, @NotNull Map<String, String> options) {
   try {
     myDuringUpdate = true;
     TransferableFileEditorState state = getEditorState(editor);
     if (state != null && state.getEditorId().equals(id)) {
       state.setTransferableOptions(options);
       editor.setState(state);
     }
   } finally {
     myDuringUpdate = false;
   }
 }