ParamInfo (PsiDocTag[] localTags, String paramName, String presentableName, PsiMethod method, DocTagLocator<PsiDocTag> tagLocator) { PsiDocTag localTag = getTagByName(localTags, paramName); if (localTag != null) { return new ParamInfo(paramName, presentableName, localTag, new InheritDocProvider<>() { @Override public Pair<PsiDocTag, InheritDocProvider<PsiDocTag>> getInheritDoc() { return findInheritDocTag(method, tagLocator); } @Override public PsiClass getElement() { return method.getContainingClass(); } }); } if (isRendered()) return null; Pair<PsiDocTag, InheritDocProvider<PsiDocTag>> tag = findInheritDocTag(method, tagLocator); return tag == null ? null : new ParamInfo(paramName, presentableName, tag); }