void (@NotNull PsiFile hostFile) { if (Registry.is("ide.check.stub.text.consistency") || ApplicationManager.getApplication().isUnitTestMode() && !ApplicationManagerEx.isInStressTest()) { if (hostFile.isValid()) { StubTextInconsistencyException.checkStubTextConsistency(hostFile); } } }