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