void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { String text = value == null ? "" : (String) value; int pos = 0; while(pos < text.length()) { int openBrace = text.indexOf('{', pos); if (openBrace == -1) openBrace = text.length(); append(text.substring(pos, openBrace)); int closeBrace = text.indexOf('}', openBrace); if (closeBrace == -1) closeBrace = text.length(); else closeBrace++; append(text.substring(openBrace, closeBrace), new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, JBColor.BLUE.darker())); pos = closeBrace; } }