private static void generateModifiers(@Nls StringBuilder buffer, PsiModifierListOwner element) {
    String modifiers = PsiFormatUtil.formatModifiers(element, PsiFormatUtilBase.JAVADOC_MODIFIERS_ONLY);
    if (!modifiers.isEmpty()) {
      appendStyledSignatureFragment(buffer, modifiers, GroovyDocHighlightingManager.getInstance().getKeywordAttributes());
      buffer.append(" ");
    }
  }
private static void generateModifiers(@Nls StringBuilder buffer, PsiModifierListOwner element)