static HighlightInfo.Builder checkIllegalModifierCombination(@NotNull PsiKeyword keyword, @NotNull PsiModifierList modifierList) {
    @PsiModifier.ModifierConstant String modifier = keyword.getText();
    String incompatible = getIncompatibleModifier(modifier, modifierList);
    if (incompatible != null) {
      String message;
      if (incompatible.equals(modifier)) {
        for (PsiElement child = modifierList.getFirstChild(); child != null; child = child.getNextSibling()) {
          if (modifier.equals(child.getText())) {
            if (child == keyword) return null;
            else break;
          }
        }
        message = JavaErrorBundle.message("repeated.modifier", incompatible);
      }
      else {
        message = JavaErrorBundle.message("incompatible.modifiers", modifier, incompatible);
      }
      HighlightInfo.Builder highlightInfo =
        HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(keyword).descriptionAndTooltip(message);
      IntentionAction action = getFixFactory().createModifierListFix(modifierList, modifier, false, false);
      highlightInfo.registerFix(action, null, null, null, null);
      return highlightInfo;
    }

    return null;
  }
static HighlightInfo.Builder checkIllegalModifierCombination(@NotNull PsiKeyword keyword, @NotNull PsiModifierList modifierList)