@NotNull
  private static AnAction @Nullable [] getActionChildrenToAddInsteadOfAction(@NotNull ActionGroup actionGroup) {
    String groupName;
    AnAction[] children = actionGroup.getChildren(null);
    groupName = actionGroup.getTemplateText();
    for (AnAction childAction : children) {
      if (groupName != null) {
        setParentGroupName(groupName, childAction);
      }
    }
    return actionGroup instanceof CollapsedActionGroup
           ? null
           : children;
  }
@NotNull
  private static AnAction @Nullable [] getActionChildrenToAddInsteadOfAction(@NotNull ActionGroup actionGroup)