boolean (PsiMethod method, PsiMethod overridingMethod, final String modifier) { final PsiModifierList modifierListCopy = (PsiModifierList)method.getModifierList().copy(); modifierListCopy.setModifierProperty(modifier, true); return JavaResolveUtil.isAccessible(method, method.getContainingClass(), modifierListCopy, overridingMethod, null, null); }