GutterIconRenderer (@NotNull final Side side) { String text = getApplyActionText(myViewer, side); Icon icon = DiffUtil.getArrowIcon(side); String actionId = side.select("Diff.ApplyLeftSide", "Diff.ApplyRightSide"); Shortcut[] shortcuts = KeymapManager.getInstance().getActiveKeymap().getShortcuts(actionId); String shortcutsText = StringUtil.nullize(KeymapUtil.getShortcutsText(shortcuts)); String tooltipText = DiffUtil.createTooltipText(text, shortcutsText); return createIconRenderer(side, tooltipText, icon, () -> myViewer.replaceChange(myChange, side)); }