private static @NotNull Map<Integer, String> collectParentParameterDescriptions(PsiMethod psiMethod, PsiParameter[] parameters) {
    final Map<Integer, String> index2Description = new HashMap<>();

    for (int i = 0; i < parameters.length; i++) {
      PsiDocTag param = JavaDocInfoGenerator.findInheritDocTag(psiMethod, i);
      if (param == null) continue;
      final PsiElement[] dataElements = param.getDataElements();
      String paramName = null;
      int endOffset = 0;
      for (PsiElement dataElement : dataElements) {
        if (dataElement instanceof PsiDocParamRef) {
          //noinspection ConstantConditions
          paramName = dataElement.getReference().getCanonicalText();
          endOffset = dataElement.getTextRangeInParent().getEndOffset();
          break;
        }
      }
      if (paramName != null) {
        String description = param.getText().substring(endOffset).replaceFirst("(\\s*\\*)?\\s*$", "");
        index2Description.put(i, description);
      }
    }
    return index2Description;
  }
private static @NotNull Map<Integer, String> collectParentParameterDescriptions(PsiMethod psiMethod, PsiParameter[] parameters)