public static @Nullable Pair<PsiFile, Editor> chooseBetweenHostAndInjected(
    @NotNull PsiFile hostFile,
    @NotNull Editor hostEditor,
    int hostOffset,
    @NotNull TripleFunction<? super @NotNull PsiFile, ? super @NotNull Editor, ? super @NotNull Integer, @NotNull Boolean> predicate
  ) {
    var injectedFile = InjectedLanguageUtilBase.findInjectedPsiNoCommit(hostFile, hostOffset);
    return chooseBetweenHostAndInjected(hostFile, hostEditor, hostOffset, injectedFile, predicate);
  }
public static @Nullable Pair<PsiFile, Editor> chooseBetweenHostAndInjected(
    @NotNull PsiFile hostFile,
    @NotNull Editor hostEditor,
    int hostOffset,
    @NotNull TripleFunction<? super @NotNull PsiFile, ? super @NotNull Editor, ? super @NotNull Integer, @NotNull Boolean> predicate
  )