@Override
  PsiFile restoreFile(@NotNull SmartPointerManagerImpl manager) {
    PsiElement element = restoreElement(manager);
    return element == null ? null : element.getContainingFile(); // can be directory
  }
@Override
  PsiFile restoreFile(@NotNull SmartPointerManagerImpl manager)