public static @Nullable Group getGroup(@NotNull String groupId, @NotNull CustomActionsSchema schema) {
    AnAction obj = schema.getCorrectedAction(groupId);
    ActionGroup group = obj instanceof ActionGroup ? (ActionGroup)obj : null;
    if (group == null) {
      return null;
    }

    @NlsSafe
    String displayName = schema.getDisplayName(groupId);
    return ActionsTreeUtil.createGroup(group, displayName, null, false, action -> true);
  }
public static @Nullable Group getGroup(@NotNull String groupId, @NotNull CustomActionsSchema schema)