private static void writeTypeRefs(
    PsiClass aClass,
    StringBuilder buffer,
    PsiClassType[] refs,
    JavaDocHighlightingManager highlightingManager
  ) {
    for (int i = 0; i < refs.length; i++) {
      JavaDocInfoGeneratorFactory.getBuilder(aClass.getProject())
        .setIsGenerationForRenderedDoc(false)
        .setHighlightingManager(highlightingManager)
        .create()
        .generateType(buffer, refs[i], aClass, false, true);

      if (i < refs.length - 1) {
        appendStyledSignatureFragment(buffer, ", ", highlightingManager.getCommaAttributes());
      }
    }
  }
private static void writeTypeRefs(
    PsiClass aClass,
    StringBuilder buffer,
    PsiClassType[] refs,
    JavaDocHighlightingManager highlightingManager
  )