private @Nullable LightEditorInfo doCreateEditor(@NotNull VirtualFile file) {
    Project project = LightEditUtil.requireLightEditProject(myLightEditService.getProject());
    Pair<FileEditorProvider, FileEditor> pair = createFileEditor(project, file);
    if (pair == null) {
      return null;
    }
    FileEditor fileEditor = pair.second;
    LightEditorInfo editorInfo = new LightEditorInfoImpl(pair.first, fileEditor, file);
    FileEditorState state = EditorHistoryManager.getInstance(project).getState(file, pair.first);
    if (state != null) {
      fileEditor.getComponent();
      fileEditor.setState(state);
    }
    if (LightEditorInfoImpl.getEditor(editorInfo) instanceof EditorImpl editor) {
      editor.setDropHandler(new LightEditDropHandler());
    }
    myEditors.add(editorInfo);
    installListener(editorInfo);
    return editorInfo;
  }
private @Nullable LightEditorInfo doCreateEditor(@NotNull VirtualFile file)