void (@NotNull Project project, @NotNull VirtualFile vFile) { PsiFile topLevelPsi = vFile.isValid() ? PsiManager.getInstance(project).findFile(vFile) : null; if (topLevelPsi != null) { if (Registry.is("ide.check.structural.psi.text.consistency.in.tests")) { PsiTestUtil.checkPsiStructureWithCommit(topLevelPsi, PsiTestUtil::checkPsiMatchesTextIgnoringNonCode); } else { PsiTestUtil.checkStubsMatchText(topLevelPsi); } } }