void (@NotNull PsiFile hostFile) { List<DocumentWindow> invalid = ContainerUtil.findAll(InjectedLanguageUtilBase.getCachedInjectedDocuments(hostFile), doc -> !doc.isValid()); for (DocumentWindow window : invalid) { InjectedLanguageUtilBase.clearCaches(hostFile.getProject(), window); } }