boolean (@NotNull final PsiMethod method) { if (method.hasModifierProperty(ABSTRACT)) return true; final PsiClass containingClass = method.getContainingClass(); if (containingClass == null) return true; if (JavaHighlightUtil.isSerializationRelatedMethod(method, containingClass)) return true; final PsiCodeBlock body = method.getBody(); if (body == null) return true; final Set<PsiClassType> unhandled = RedundantThrowsGraphAnnotator.getUnhandledExceptions(body, method, containingClass); return ContainerUtil.exists(unhandled, myType::isAssignableFrom); }