HighlightUsagesHandlerBase<PsiClass> (@NotNull Editor editor, @NotNull PsiFile file, @NotNull PsiElement target) { FeatureUsageTracker.getInstance().triggerFeatureUsed("codeassists.highlight.throws"); PsiElement grand = target.getParent().getParent(); if (!(grand instanceof PsiMethod)) return null; PsiCodeBlock body = ((PsiMethod)grand).getBody(); if (body == null) return null; Collection<PsiClassType> unhandled = ExceptionUtil.collectUnhandledExceptions(body, body); PsiClassType[] types = unhandled.toArray(PsiClassType.EMPTY_ARRAY); return new HighlightExceptionsHandler(editor, file, target, types, body, null, alwaysTrue()); }