void ( StringBuilder buffer, PsiElement refElement, String refText, String label, boolean plainLink, boolean isRendered ) { buffer.append("<a href=\""); buffer.append(DocumentationManagerProtocol.PSI_ELEMENT_PROTOCOL); // :-) buffer.append(refText); buffer.append("\">"); if (!plainLink) { if (ApplicationManager.getApplication().isUnitTestMode()) { buffer.append(isRendered ? "<code style='font-size:96%;'>" : "<code>"); } else { buffer.append("<code style='font-size:"); buffer.append(getMonospaceFontSizeCorrection(isRendered)); buffer.append("%;'>"); } } buffer.append(label); if (!plainLink) { buffer.append("</code>"); } buffer.append("</a>"); }