private static void generateTraitType(@NotNull StringBuilder buffer, @NotNull GrTraitType type, PsiElement context, boolean isRendered) {
    appendTypeString(buffer, type.getExprType(), context, isRendered);
    appendStyledSignatureFragment(buffer, " as ", GroovyDocHighlightingManager.getInstance().getKeywordAttributes()); // <- Groovy keyword
    @NotNull List<PsiType> types = type.getTraitTypes();
    for (int i = 0; i < types.size(); i++) {
      PsiType traitType = types.get(i);
      appendTypeString(buffer, traitType, context, isRendered);
      if (i != types.size() - 1) {
        appendStyledSignatureFragment(buffer, ", ", GroovyDocHighlightingManager.getInstance().getCommaAttributes());
      }
    }
  }
private static void generateTraitType(@NotNull StringBuilder buffer, @NotNull GrTraitType type, PsiElement context, boolean isRendered)