boolean (PsiMethod method) { final PsiElement element = method.getNavigationElement(); return AstLoadingFilter.forceAllowTreeLoading(method.getContainingFile(), () -> MethodUtils.isTrivial(element instanceof PsiMethod ? (PsiMethod)element : method, s -> s instanceof PsiThrowStatement)); }