FieldAccessorCandidate (@NotNull PsiMethod psiMethod) { if (!psiMethod.getParameterList().isEmpty()) return null; String methodName = psiMethod.getName(); PsiField backingField = null; boolean recordStyleNaming = false; for (PsiField field : myFieldAccessors.keySet()) { if (!field.getType().equals(psiMethod.getReturnType())) continue; String fieldName = field.getName(); if (fieldName.equals(methodName)) { backingField = field; recordStyleNaming = true; break; } if (mySuggestAccessorsRenaming && fieldName.equals(PropertyUtilBase.getPropertyNameByGetter(psiMethod))) { backingField = field; break; } } return backingField == null ? null : new FieldAccessorCandidate(psiMethod, backingField, recordStyleNaming); }