private @Nullable LightEditorInfo findEditor(@NotNull Editor editor) {
    for (LightEditorInfo editorInfo : myEditors) {
      FileEditor fileEditor = editorInfo.getFileEditor();
      if (fileEditor instanceof TextEditor && editor == ((TextEditor)fileEditor).getEditor()) {
        return editorInfo;
      }
    }
    return null;
  }
private @Nullable LightEditorInfo findEditor(@NotNull Editor editor)