void ( StringBuilder buffer, @Nullable PsiElement target, String label, @NotNull Project project, boolean plainLink ) { if (target == null && DumbService.isDumb(project)) { buffer.append(label); } else if (target == null) { buffer.append(getSpanForUnresolvedItem()).append(label).append("</span>"); } else { String highlightedLabel = myIsSignatureGenerationInProgress && doHighlightSignatures() || doSemanticHighlightingOfLinks() ? tryHighlightLinkLabel(target, label) : label; generateLink(buffer, target, highlightedLabel, plainLink); } }