JBCheckBox (@NotNull ShortcutSet checkboxShortcutSet, boolean showChanged) { //noinspection HardCodedStringLiteral String text = "<html>" + IdeBundle.message("recent.locations.title.text") + " <font color=\"" + Holder.SHORTCUT_HEX_COLOR + "\">" + KeymapUtil.getShortcutsText(checkboxShortcutSet.getShortcuts()) + "</font>" + "</html>"; JBCheckBox checkBox = new JBCheckBox(text); checkBox.setBorder(JBUI.Borders.empty()); checkBox.setOpaque(false); checkBox.setSelected(showChanged); return checkBox; }