static HighlightInfo.Builder checkRecordComponentVarArg(@NotNull PsiRecordComponent recordComponent) {
    if (recordComponent.isVarArgs() && PsiTreeUtil.getNextSiblingOfType(recordComponent, PsiRecordComponent.class) != null) {
      HighlightInfo.Builder info = HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(recordComponent)
        .descriptionAndTooltip(JavaErrorBundle.message("record.component.vararg.not.last"));
      IntentionAction action = getFixFactory().createMakeVarargParameterLastFix(recordComponent);
      info.registerFix(action, null, null, null, null);
      return info;
    }
    return null;
  }
static HighlightInfo.Builder checkRecordComponentVarArg(@NotNull PsiRecordComponent recordComponent)