void (@NotNull SimpleColoredComponent component, @NotNull @Nls String placeholder) { int lt = StringUtil.indexOf(placeholder, "<"); if (lt == -1) { component.append(placeholder); return; } int gt = StringUtil.indexOf(placeholder, ">", lt); //appends leading component.append(gt > -1 ? placeholder.substring(0, lt) : placeholder); while (lt > -1 && gt > -1) { component.append(placeholder.substring(lt, gt + 1), SimpleTextAttributes.GRAY_ATTRIBUTES); lt = StringUtil.indexOf(placeholder, "<", gt); if (lt == -1) { component.append(placeholder.substring(gt + 1)); break; } component.append(placeholder.substring(gt + 1, lt)); gt = StringUtil.indexOf(placeholder, ">", lt); } }