void (@NotNull JList list, AnAction value, int index, boolean selected, boolean hasFocus) { @NlsSafe String actionId = ActionManager.getInstance().getId(value); append(actionId, SimpleTextAttributes.REGULAR_ATTRIBUTES); String text = value.getTemplatePresentation().getText(); if (StringUtil.isNotEmpty(text)) { append(" (" + text + ")", SimpleTextAttributes.REGULAR_ATTRIBUTES); } }