String (int recordComponentIndex, @NotNull PsiClass recordClass) { PsiRecordComponent[] recordComponents = recordClass.getRecordComponents(); if (recordComponents.length <= recordComponentIndex) return null; PsiRecordComponent recordComponent = recordComponents[recordComponentIndex]; PsiDocComment classComment = recordClass.getDocComment(); String recordComponentName = recordComponent.getName(); if (classComment == null) return null; PsiDocTag tag = getParamTagByName(classComment, recordComponentName); if (tag == null) return null; PsiElement[] elements = tag.getDataElements(); if (elements.length == 0) return null; String text = elements[0].getText(); StringBuilder buffer = new StringBuilder(); generateValue(buffer, new ParamInfo(recordComponentName, recordComponentName, tag, ourEmptyProvider), elements, text); return buffer.toString(); }