public void setOriginalFile(@NotNull PsiFile originalFile) {
    myOriginalFile = originalFile.getOriginalFile();

    FileViewProvider original = myOriginalFile.getViewProvider();
    ((AbstractFileViewProvider)original).registerAsCopy(myViewProvider);
  }
public void setOriginalFile(@NotNull PsiFile originalFile)