void (SimpleColoredComponent component, @NlsSafe String id, @NlsSafe String path) { if (path == null) { component.append(id, SimpleTextAttributes.REGULAR_ITALIC_ATTRIBUTES); } else { int index = path.lastIndexOf(" | "); if (index < 0) { component.append(path, SimpleTextAttributes.REGULAR_ATTRIBUTES); } else { component.append(path.substring(index + 3), SimpleTextAttributes.REGULAR_ATTRIBUTES); component.append(" " + IdeBundle.message("shortcut.in.group.text", path.substring(0, index)), SimpleTextAttributes.GRAYED_ATTRIBUTES); } } }