boolean (@NotNull PsiClass containingClass, PsiMember member) { if (member == null) return false; PsiClass memberContainingClass = member.getContainingClass(); if (memberContainingClass == null) return false; if (!InheritanceUtil.isInheritorOrSelf(containingClass, memberContainingClass, true) && !isInnerClassOf(containingClass, memberContainingClass)) { return false; } return !member.hasModifierProperty(PsiModifier.STATIC); }