void (@NotNull PsiMethod psiMethod) { findAnchorFieldForGetter(psiMethod) .map(PsiField::getModifierList) .ifPresent(modifierList -> replaceWithAnnotation(modifierList, psiMethod, LombokClassNames.GETTER)); findAnchorFieldForSetter(psiMethod) .map(PsiField::getModifierList) .ifPresent(modifierList -> replaceWithAnnotation(modifierList, psiMethod, LombokClassNames.SETTER)); }