String (@Nullable PsiMethod calledMethod) { if (PropertyUtilBase.isSimplePropertySetter(calledMethod)) { return PropertyUtilBase.getPropertyName(calledMethod); } PsiReferenceExpression reference = ExcludeSillyAssignment.getAssignedReference(myPosition); if (reference != null) { PsiElement target = reference.resolve(); if (target instanceof PsiField) { return PropertyUtilBase.suggestPropertyName((PsiField)target); } } return null; }