protected AnAction @NotNull [] createExtraToolbarActions() {
    AnActionButton[] actions = createExtraActions();
    if (actions.length == 0) return AnAction.EMPTY_ARRAY;
    return Arrays.copyOf(actions, actions.length, AnAction[].class);
  }
protected AnAction @NotNull [] createExtraToolbarActions()