private static void insertFields(StringBuilder result, PsiClass recordClass) {
    if (SerializationUtils.isSerializable(recordClass)) {
      if (getSerialVersionUIDField(recordClass) == null) {
        result.append(AddSerialVersionUIDFix.generateSerialVersionUIDFieldText(0)).append("\n");
      }
    }
    for (PsiRecordComponent component : recordClass.getRecordComponents()) {
      PsiField field = JavaPsiRecordUtil.getFieldForComponent(component);
      if (field != null) {
        result.append(field.getText()).append("\n");
      }
    }
  }
private static void insertFields(StringBuilder result, PsiClass recordClass)