private void createActionGroupWithRefreshAction(@NotNull JComponent targetComponent, @NotNull AnAction refreshAction) {
    DefaultActionGroup actionGroup = new DefaultActionGroup();
    actionGroup.add(refreshAction);
    ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(SIMILAR_USAGES_PREVIEW_TOOLBAR, actionGroup, true);
    actionToolbar.getComponent().setBackground(UIUtil.getTextFieldBackground());
    actionToolbar.setTargetComponent(targetComponent);
    add(actionToolbar.getComponent());
  }
private void createActionGroupWithRefreshAction(@NotNull JComponent targetComponent, @NotNull AnAction refreshAction)