@Override
  protected @NotNull @InspectionMessage String buildErrorString(Object... infos) {
    return JavaBundle.message("class.can.be.record.display.name");
  }
@Override
  protected @NotNull @InspectionMessage String buildErrorString(Object... infos)