void (@NotNull StringBuilder buffer, @NotNull GrTraitType type, PsiElement context, boolean isRendered) { appendTypeString(buffer, type.getExprType(), context, isRendered); appendStyledSpan(buffer, GroovyDocHighlightingManager.getInstance().getKeywordAttributes(), " as "); // <- 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) { appendStyledSpan(buffer, GroovyDocHighlightingManager.getInstance().getCommaAttributes(), ", "); } } }