public static int[] getAllIndexes(@NotNull Collection<? extends RunAnythingGroup> groups) {
    IntList list = new IntArrayList();
    for (RunAnythingGroup runAnythingGroup : groups) {
      list.add(runAnythingGroup.myTitleIndex);
    }
    for (RunAnythingGroup runAnythingGroup : groups) {
      list.add(runAnythingGroup.myMoreIndex);
    }

    return list.toIntArray();
  }
public static int[] getAllIndexes(@NotNull Collection<? extends RunAnythingGroup> groups)