boolean (PsiDocCommentOwner member) { if (DumbService.isDumb(member.getProject())) return false; if (member.isDeprecated()) { return true; } PsiClass aClass = member.getContainingClass(); while (aClass != null) { if (aClass.isDeprecated()) { return true; } aClass = aClass.getContainingClass(); } return false; }