void (@NotNull JList<? extends PopupFactoryImpl.ActionItem> list, @NotNull PopupFactoryImpl.ActionItem actionItem, boolean isSelected) { myButtonsSeparator.setVisible(false); AnAction action = actionItem.getAction(); Presentation presentation = factory.getPresentation(action); String qualifiedName = presentation.getClientProperty(CopyPathProvider.QUALIFIED_NAME); myInfoLabel.setText(""); if (qualifiedName != null) { myInfoLabel.setText(qualifiedName); } Color foreground = isSelected ? NamedColorUtil.getListSelectionForeground(true) : NamedColorUtil.getInactiveTextColor(); myInfoLabel.setForeground(foreground); myShortcutLabel.setForeground(foreground); MnemonicNavigationFilter<Object> filter = myStep.getMnemonicNavigationFilter(); int pos = filter == null ? -1 : filter.getMnemonicPos(actionItem); if (pos != -1) { String text = myTextLabel.getText(); text = text.substring(0, pos) + text.substring(pos + 1); myTextLabel.setText(text); myTextLabel.setDisplayedMnemonicIndex(pos); } if (action instanceof CopyPathProvider) { Shortcut shortcut = ArrayUtil.getFirstElement(action.getShortcutSet().getShortcuts()); myShortcutLabel.setText(shortcut != null ? KeymapUtil.getShortcutText(shortcut) : null); } }