boolean (final PsiMethod superMethod, final PsiMethod method, final boolean allowStaticMethod) { boolean hisStatic = superMethod.hasModifierProperty(PsiModifier.STATIC); return hisStatic == method.hasModifierProperty(PsiModifier.STATIC) && (allowStaticMethod || !hisStatic) && JavaPsiFacade.getInstance(method.getProject()).getResolveHelper().isAccessible(superMethod, method, null); }