void (@NotNull final PsiFile file) { final String psiToStringDefault = DebugUtil.psiToString(file, true, false); DebugUtil.performPsiModification("ensureCorrectReparse", () -> { final String fileText = file.getText(); final DiffLog diffLog = new BlockSupportImpl().reparseRange( file, file.getNode(), TextRange.allOf(fileText), fileText, new EmptyProgressIndicator(), fileText); diffLog.performActualPsiChange(file); }); assertEquals(psiToStringDefault, DebugUtil.psiToString(file, true, false)); }