boolean (Object lookupObject, @Nullable PsiMethod calledMethod) { String prop = getSetterPropertyName(calledMethod); if (prop == null) return false; if (lookupObject instanceof PsiField && prop.equals(PropertyUtilBase.suggestPropertyName((PsiField)lookupObject))) { return true; } if (lookupObject instanceof PsiMethod && PropertyUtilBase.isSimplePropertyGetter((PsiMethod)lookupObject) && prop.equals(PropertyUtilBase.getPropertyName((PsiMethod)lookupObject))) { return true; } return false; }