static HighlightInfo.Builder checkImplementsAllowed(@NotNull PsiReferenceList list) {
    if (list.getParent() instanceof PsiClass aClass && aClass.isInterface()) {
      boolean isImplements = list.equals(aClass.getImplementsList());
      if (isImplements) {
        String description = JavaErrorBundle.message("implements.after.interface");
        HighlightInfo.Builder result =
          HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(list.getFirstChild()).descriptionAndTooltip(description);
        PsiClassType[] referencedTypes = list.getReferencedTypes();
        if (referencedTypes.length > 0) {
          IntentionAction action = QuickFixFactory.getInstance().createChangeExtendsToImplementsFix(aClass, referencedTypes[0]);
          result.registerFix(action, null, null, null, null);
        }
        return result;
      }
    }
    return null;
  }
static HighlightInfo.Builder checkImplementsAllowed(@NotNull PsiReferenceList list)