private static Attachment createFileTextAttachment(PsiFile fileCopy, final PsiFile originalFile) {
    return new Attachment(originalFile.getViewProvider().getVirtualFile().getPath(), fileCopy.getText());
  }
private static Attachment createFileTextAttachment(PsiFile fileCopy, final PsiFile originalFile)