void (@NotNull PsiClass aClass, @NotNull List<Pair<PsiField, PsiMethod>> fieldsAndMethods, @NotNull List<PsiField> annotatedFields) { if (!addLombokAnnotation(aClass)) return; for (Pair<PsiField, PsiMethod> fieldAndMethod : fieldsAndMethods) { PsiField field = fieldAndMethod.getFirst(); PsiMethod method = fieldAndMethod.getSecond(); removeMethodAndMoveJavaDoc(field, method); } for (PsiField annotatedField : annotatedFields) { PsiAnnotation oldAnnotation = annotatedField.getAnnotation(getAnnotationName()); if (oldAnnotation != null) { new CommentTracker().deleteAndRestoreComments(oldAnnotation); } } }