@Override
  public @Nullable FileModifier getFileModifierForPreview(@NotNull PsiFile target) {
    PsiElement element = myFileReference.getElement();
    PsiElement copy = PsiTreeUtil.findSameElementInCopy(element, target);
    return StreamEx.of(copy.getReferences()).select(FileReference.class).collect(MoreCollectors.onlyOne())
      .map(ref -> new RenameFileReferenceIntentionAction(myExistingElementName, ref)).orElse(null);
  }
@Override
  public @Nullable FileModifier getFileModifierForPreview(@NotNull PsiFile target)