void (PsiClass recordClass, PsiClass converted) { PsiRecordComponent[] components = recordClass.getRecordComponents(); Map<String, PsiRecordComponent> componentMap = StreamEx.of(components).toMap(c -> c.getName(), c -> c, (a, b) -> a); boolean serializableRecord = SerializationUtils.isSerializable(recordClass); for (PsiField field : converted.getFields()) { if (serializableRecord && SerializationUtils.isSerialVersionUid(field)) { postProcessSerialVersionUIDFieldAnnotations(recordClass, field); } else { postProcessFieldAnnotations(componentMap, field); } } for (PsiMethod method : converted.getMethods()) { postProcessMethodAnnotations(recordClass, componentMap, method); } }