public ElementsRange findCopyInFile(@NotNull PsiFile file) {
    PsiElement copyStart = findCopyInFile(file, myStart);
    PsiElement copyEnd = findCopyInFile(file, myEnd);

    if (copyStart != null && copyEnd != null) {
      return new ElementsRange(copyStart, copyEnd);
    }
    return null;
  }
public ElementsRange findCopyInFile(@NotNull PsiFile file)