@Nullable
  public FileEditor getSelectedEditor(Project project, VirtualFile file) {
    return FileEditorManager.getInstance(project).getSelectedEditor(file);
  }
@Nullable
  public FileEditor getSelectedEditor(Project project, VirtualFile file)