boolean (Object object) { if (!(object instanceof PsiMethod)) return false; PsiField field = PropertyUtil.getFieldOfGetter((PsiMethod)object); return field != null && PsiResolveHelper.getInstance(myPosition.getProject()).isAccessible(field, myPosition, null); }