boolean (@NotNull PsiFile newInjectedFile, @NotNull TextRange newHostRange) { DocumentWindow documentWindow = InjectedLanguageUtil.getDocumentWindow(newInjectedFile); if (documentWindow == null || documentWindow.getDelegate() != myAltFullRange.getDocument()) { return false; } return super.tryReuse(newInjectedFile, newHostRange); }