static HighlightInfo.Builder checkVarArgParameterIsLast(@NotNull PsiParameter parameter) {
    PsiElement declarationScope = parameter.getDeclarationScope();
    if (declarationScope instanceof PsiMethod) {
      PsiParameter[] params = ((PsiMethod)declarationScope).getParameterList().getParameters();
      if (params[params.length - 1] != parameter) {
        String description = JavaErrorBundle.message("vararg.not.last.parameter");
        HighlightInfo.Builder info =
          HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(parameter).descriptionAndTooltip(description);
        IntentionAction action = QuickFixFactory.getInstance().createMakeVarargParameterLastFix(parameter);
        info.registerFix(action, null, null, null, null);
        return info;
      }
    }
    return null;
  }
static HighlightInfo.Builder checkVarArgParameterIsLast(@NotNull PsiParameter parameter)