void (@NotNull PresentationData presentation) { String name = myBlock.getDebugName(); if (name == null) name = myBlock.getClass().getSimpleName(); if (myBlock instanceof DataLanguageBlockWrapper) { name += " (" + ((DataLanguageBlockWrapper)myBlock).getOriginal().getClass().getSimpleName() + ")"; } presentation.addText(name, SimpleTextAttributes.REGULAR_ATTRIBUTES); if (myBlock.getIndent() != null) { presentation.addText(" " + String.valueOf(myBlock.getIndent()).replaceAll("[<>]", " "), SimpleTextAttributes.GRAY_ATTRIBUTES); } if (myBlock.getAlignment() != null) { float d = 1.f * System.identityHashCode(myBlock.getAlignment()) / Integer.MAX_VALUE; Color color = new JBColor(Color.HSBtoRGB(d, .3f, .7f), Color.HSBtoRGB(d, .3f, .8f)); presentation .addText(" " + myBlock.getAlignment(), new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, color)); } if (myBlock.getWrap() != null) { presentation .addText(" " + myBlock.getWrap(), new SimpleTextAttributes(SimpleTextAttributes.STYLE_ITALIC, PlatformColors.BLUE)); } }