void (StringBuilder buffer, PsiMethod method, PsiDocComment comment) { PsiDocTag tag = comment == null ? null : new ReturnTagLocator().find(method, comment); Pair<PsiDocTag, InheritDocProvider<PsiDocTag>> pair = tag == null ? null : new Pair<>(tag, new InheritDocProvider<>() { @Override public Pair<PsiDocTag, InheritDocProvider<PsiDocTag>> getInheritDoc() { return findInheritDocTag(method, new ReturnTagLocator()); } @Override public PsiClass getElement() { return method.getContainingClass(); } }); if (!isRendered() && pair == null && myElement instanceof PsiMethod) { pair = findInheritDocTag((PsiMethod)myElement, new ReturnTagLocator()); } if (pair != null) { startHeaderSection(buffer, CodeInsightBundle.message("javadoc.returns")) .append("<p>"); generateValue(buffer, pair.first.getDataElements(), mapProvider(pair.second, false)); buffer.append(DocumentationMarkup.SECTION_END); } }