if (isGemNode(treeNode) && browserTree.getDisplayTypeExpr()) {
// If required draw type signatures next to gem names in a different font.
stylizedName = getAttributedString();
GemEntity gemEntity = (GemEntity) treeNode.getUserObject();
ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(browserTreeModel.getPerspective().getWorkingModuleTypeInfo());
int nameLength = treeNode.getDisplayedString().length() + NAME_TYPE_PAD.length();
int typeLength = gemEntity.getTypeExpr().toString(namingPolicy).length();
// Make the type name appear in italic and in a smaller size
stylizedName.addAttribute(TextAttribute.FONT, getFont().deriveFont(Font.ITALIC), nameLength, nameLength + typeLength);
if (browserTreeModel.isVisibleGem(gemEntity)) {