void () { DefaultLogger.disableStderrDumping(getTestRootDisposable()); PsiFileImpl file = addFile(); assertFalse(file.isContentsLoaded()); assertThrows(AstLoadingException.class, () -> AstLoadingFilter.disallowTreeLoading( () -> file.getNode() ) ); }