private void generateRecordComponentJavaDoc(StringBuilder buffer, boolean generatePrologue, @NotNull PsiRecordComponent recordComponent) {
    if (generatePrologue) generatePrologue(buffer);
    generateVariableDefinition(buffer, recordComponent, true);

    PsiRecordHeader recordHeader = ObjectUtils.tryCast(recordComponent.getParent(), PsiRecordHeader.class);
    if (recordHeader == null) return;
    PsiRecordComponent[] components = recordHeader.getRecordComponents();
    int recordIndex = ArrayUtil.indexOf(components, recordComponent);
    PsiClass recordClass = recordComponent.getContainingClass();
    if (recordClass == null) return;
    String recordComponentJavadoc = getRecordComponentJavadocFromParameterTag(recordIndex, recordClass);
    if (recordComponentJavadoc != null) {
      buffer.append(DocumentationMarkup.CONTENT_START);
      buffer.append(recordComponentJavadoc);
      buffer.append(DocumentationMarkup.CONTENT_END);
    }
  }
private void generateRecordComponentJavaDoc(StringBuilder buffer, boolean generatePrologue, @NotNull PsiRecordComponent recordComponent)