static HighlightInfo.Builder checkAnnotationMethodParameters(@NotNull PsiParameterList list) {
    PsiElement parent = list.getParent();
    if (PsiUtil.isAnnotationMethod(parent) &&
        (!list.isEmpty() || PsiTreeUtil.getChildOfType(list, PsiReceiverParameter.class) != null)) {
      String message = JavaErrorBundle.message("annotation.interface.members.may.not.have.parameters");
      HighlightInfo.Builder highlightInfo =
        HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(list).descriptionAndTooltip(message);
      IntentionAction action = getFixFactory().createRemoveParameterListFix((PsiMethod)parent);
      highlightInfo.registerFix(action, null, null, null, null);
      return highlightInfo;
    }
    return null;
  }
static HighlightInfo.Builder checkAnnotationMethodParameters(@NotNull PsiParameterList list)