@Override
  public FileEditor getCurrentEditor(@Nullable Project project) {
    DataManager dataManager = DataManager.getInstanceIfCreated();
    if (dataManager == null) return null;
    @SuppressWarnings("deprecation") DataContext context = dataManager.getDataContext();
    return PlatformCoreDataKeys.FILE_EDITOR.getData(context);
  }
@Override
  public FileEditor getCurrentEditor(@Nullable Project project)