public static @Nullable PsiFile findInjectedPsiNoCommit(@NotNull PsiFile host, int offset) {
    PsiElement injected = InjectedLanguageManager.getInstance(host.getProject()).findInjectedElementAt(host, offset);
    return injected == null ? null : PsiUtilCore.getTemplateLanguageFile(injected.getContainingFile());
  }
public static @Nullable PsiFile findInjectedPsiNoCommit(@NotNull PsiFile host, int offset)