public static @Nullable <T extends PsiElement> T getOriginalElement(@NotNull T psi) {
    return getOriginalElement(psi, psi.getContainingFile());
  }
public static @Nullable <T extends PsiElement> T getOriginalElement(@NotNull T psi)