void (@NotNull PsiFile file, @NotNull Function<? super PsiFile, String> fun) { PsiFile dummyFile = createDummyCopy(file); String psiTree = StringUtil.join(file.getViewProvider().getAllFiles(), fun, "\n"); String reparsedTree = StringUtil.join(dummyFile.getViewProvider().getAllFiles(), fun, "\n"); assertPsiTextTreeConsistency(psiTree, reparsedTree); }