void () { JPanel parentPanel = mySimpleDesignMode ? myBottomPanel : this; if (myShortcutLabel != null) { parentPanel.remove(myShortcutLabel); } String upShortcut = KeymapUtil.getFirstKeyboardShortcutText(IdeActions.ACTION_METHOD_OVERLOAD_SWITCH_UP); String downShortcut = KeymapUtil.getFirstKeyboardShortcutText(IdeActions.ACTION_METHOD_OVERLOAD_SWITCH_DOWN); if (!myAllowSwitchLabel || myParameterInfoControllerData.getDescriptors().length <= 1 || !myParameterInfoControllerData.getHandler().supportsOverloadSwitching() || upShortcut.isEmpty() && downShortcut.isEmpty()) { myShortcutLabel = null; } else { myShortcutLabel = new JLabel( upShortcut.isEmpty() || downShortcut.isEmpty() ? CodeInsightBundle.message("parameter.info.switch.overload.shortcuts.single", upShortcut.isEmpty() ? downShortcut : upShortcut) : CodeInsightBundle.message("parameter.info.switch.overload.shortcuts", upShortcut, downShortcut)); myShortcutLabel.setForeground(CONTEXT_HELP_FOREGROUND); if (mySimpleDesignMode) { myShortcutLabel.setBorder(JBUI.Borders.emptyTop(12)); } else { Font labelFont = StartupUiUtil.getLabelFont(); myShortcutLabel.setFont(labelFont.deriveFont(labelFont.getSize2D() - (SystemInfo.isWindows ? 1 : 2))); myShortcutLabel.setBorder(JBUI.Borders.empty(6, 10, 0, 10)); } parentPanel.add(myShortcutLabel, BorderLayout.SOUTH); } }