boolean (PsiMethod method, PsiField field) { return PsiResolveHelper.getInstance(method.getProject()).isAccessible(field, method, null) && (!method.hasModifier(JvmModifier.STATIC) || field.hasModifier(JvmModifier.STATIC)) && InheritanceUtil.isInheritorOrSelf(method.getContainingClass(), field.getContainingClass(), true); }