@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiClass record, @NotNull ModPsiUpdater updater) {
    if (!record.isRecord() || record.getRecordHeader() != null) return;
    PsiTypeParameterList typeParameterList = record.getTypeParameterList();
    if (typeParameterList == null) return;
    PsiRecordHeader recordHeader = JavaPsiFacade.getElementFactory(context.project())
      .createRecordHeaderFromText("", record);
    record.addAfter(recordHeader, typeParameterList);
  }
@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiClass record, @NotNull ModPsiUpdater updater)