HighlightInfoType (@NotNull PsiElement element) { // JSP top-level errors are handled by UnhandledExceptionInJSP inspection if (FileTypeUtils.isInServerPageFile(element)) { PsiMethod targetMethod = PsiTreeUtil.getParentOfType(element, PsiMethod.class, true, PsiLambdaExpression.class); if (targetMethod instanceof SyntheticElement) { return null; } } return HighlightInfoType.UNHANDLED_EXCEPTION; }