void (Project project, @Nullable PsiFile hostFile, List<? extends BaseInjection> newInjections, List<? extends BaseInjection> originalInjections, List<? extends PsiElement> psiElementsToRemove) { replaceInjectionsWithUndo(project, hostFile, newInjections, originalInjections, true, psiElementsToRemove, (add, remove) -> { replaceInjectionsWithUndoInner(add, remove); if (ContainerUtil.find(add, LANGUAGE_INJECTION_CONDITION) != null || ContainerUtil.find(remove, LANGUAGE_INJECTION_CONDITION) != null) { FileContentUtil.reparseOpenedFiles(); } return true; }); }